Просмотр исходного кода

Merge pull request #1239 from hestiacp/fix/2020-09-capital_letters_caused_issues_in_test.bats

Issues caused due to random generator
Raphael Schneeberger 5 лет назад
Родитель
Сommit
038df0ded0
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      test/test.bats
  2. 1 1
      test/test_actions.sh

+ 1 - 1
test/test.bats

@@ -6,7 +6,7 @@ load 'test_helper/bats-file/load'
 
 
 function random() {
-    head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
+    head /dev/urandom | tr -dc 0-9 | head -c$1
 }
 
 function setup() {

+ 1 - 1
test/test_actions.sh

@@ -7,7 +7,7 @@ V_TEST="$HESTIA/test"
 
 # Define functions
 random() {
-    head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
+    head /dev/urandom | tr -dc 0-9 | head -c$1
 }
 
 echo_result() {