Skip to content

Commit 038df0d

Browse files
authored
Merge pull request hestiacp#1239 from hestiacp/fix/2020-09-capital_letters_caused_issues_in_test.bats
Issues caused due to random generator
2 parents 082090d + 11cae65 commit 038df0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ load 'test_helper/bats-file/load'
66

77

88
function random() {
9-
head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
9+
head /dev/urandom | tr -dc 0-9 | head -c$1
1010
}
1111

1212
function setup() {

test/test_actions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ V_TEST="$HESTIA/test"
77

88
# Define functions
99
random() {
10-
head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
10+
head /dev/urandom | tr -dc 0-9 | head -c$1
1111
}
1212

1313
echo_result() {

0 commit comments

Comments
 (0)