From 037e7638041f46ad94b33418279a29a7841ed031 Mon Sep 17 00:00:00 2001 From: Karol Zadora-Przylecki Date: Tue, 13 Dec 2022 18:52:08 +0000 Subject: [PATCH] Fix test pass condition (#1259) There are only 10 lowercase letters in the generated password --- cli/azd/pkg/password/generator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/azd/pkg/password/generator_test.go b/cli/azd/pkg/password/generator_test.go index b8e18c190d..2ca29c6dae 100644 --- a/cli/azd/pkg/password/generator_test.go +++ b/cli/azd/pkg/password/generator_test.go @@ -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 {