Skip to content

Commit 0d43bfc

Browse files
committed
Fix long running pw gen tests
1 parent ba09437 commit 0d43bfc

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

test/pw.bats

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ assert_pw_home() {
5656
}
5757

5858
@test "generates and prints password" {
59-
export PW_GEN_LENGTH=5
59+
export PW_GEN_LENGTH=1
6060
export PW_GEN_CLASS="1"
6161
run pw -p gen
6262
assert_success
63-
assert_output "11111"
63+
assert_output "1"
6464
}
6565

6666
@test "generates password with specified length" {
67-
export PW_GEN_LENGTH=5
67+
export PW_GEN_LENGTH=2
6868
export PW_GEN_CLASS="1"
69-
run pw -p gen 8
69+
run pw -p gen 1
7070
assert_success
71-
assert_output "11111111"
71+
assert_output "1"
7272
}
7373

7474
@test "generates password with specified character class" {
75-
export PW_GEN_LENGTH=5
75+
export PW_GEN_LENGTH=2
7676
export PW_GEN_CLASS="1"
77-
run pw -p gen 8 "2"
77+
run pw -p gen 1 "2"
7878
assert_success
79-
assert_output "22222222"
79+
assert_output "2"
8080
}
8181

8282
# @test "BusyBox: replaces [:graph:] with [:alnum:][:punct:]" {

0 commit comments

Comments
 (0)