Skip to content

Commit

Permalink
Fix test pass condition (#1259)
Browse files Browse the repository at this point in the history
There are only 10 lowercase letters in the generated password
  • Loading branch information
karolz-ms committed Dec 13, 2022
1 parent d122f9a commit 037e763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/azd/pkg/password/generator_test.go
Expand Up @@ -62,7 +62,7 @@ func TestPasswordShuffled(t *testing.T) {
require.NoError(t, err)

// Should be super improbable for the lowercase letters to remain at the front
require.Less(t, countCharsFrom(string(pwd[0:20]), LowercaseLetters), 20)
require.Less(t, countCharsFrom(string(pwd[0:10]), LowercaseLetters), 10)
}

func countCharsFrom(s, choices string) int {
Expand Down

0 comments on commit 037e763

Please sign in to comment.