Remove Cloudflare from pack-usb, fix password length test
This commit is contained in:
@@ -49,8 +49,8 @@ func TestAuthCacheHitAndMiss(t *testing.T) {
|
||||
|
||||
func TestGenerateRandomPasswordLength(t *testing.T) {
|
||||
pw := generateRandomPassword()
|
||||
if len(pw) != 20 {
|
||||
t.Fatalf("expected 20-char hex password, got len %d (%q)", len(pw), pw)
|
||||
if len(pw) != 8 {
|
||||
t.Fatalf("expected 8-char hex password, got len %d (%q)", len(pw), pw)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user