@@ -15,9 +15,8 @@ func BenchmarkDefaultWorkFactorPbkdfSha256(b *testing.B) {
1515 Store : passhash.DummyCredentialStore {}, PasswordPolicies : []passhash.PasswordPolicy {},
1616 }
1717 userID := passhash .UserID (0 )
18- password := "insecurepassword"
1918 for i := 0 ; i < b .N ; i ++ {
20- config .NewCredential (userID , password )
19+ config .NewCredential (userID , testPassword ) // nolint: errcheck
2120 }
2221}
2322
@@ -28,9 +27,8 @@ func BenchmarkDefaultWorkFactorPbkdfSha512(b *testing.B) {
2827 Store : passhash.DummyCredentialStore {}, PasswordPolicies : []passhash.PasswordPolicy {},
2928 }
3029 userID := passhash .UserID (0 )
31- password := "insecurepassword"
3230 for i := 0 ; i < b .N ; i ++ {
33- config .NewCredential (userID , password )
31+ config .NewCredential (userID , testPassword ) // nolint: errcheck
3432 }
3533}
3634
@@ -41,9 +39,8 @@ func BenchmarkDefaultWorkFactorPbkdfSha3_256(b *testing.B) {
4139 Store : passhash.DummyCredentialStore {}, PasswordPolicies : []passhash.PasswordPolicy {},
4240 }
4341 userID := passhash .UserID (0 )
44- password := "insecurepassword"
4542 for i := 0 ; i < b .N ; i ++ {
46- config .NewCredential (userID , password )
43+ config .NewCredential (userID , testPassword ) // nolint: errcheck
4744 }
4845}
4946
@@ -54,9 +51,8 @@ func BenchmarkDefaultWorkFactorPbkdfSha3_512(b *testing.B) {
5451 Store : passhash.DummyCredentialStore {}, PasswordPolicies : []passhash.PasswordPolicy {},
5552 }
5653 userID := passhash .UserID (0 )
57- password := "insecurepassword"
5854 for i := 0 ; i < b .N ; i ++ {
59- config .NewCredential (userID , password )
55+ config .NewCredential (userID , testPassword ) // nolint: errcheck
6056 }
6157}
6258
@@ -67,9 +63,8 @@ func BenchmarkDefaultWorkFactorBcrypt(b *testing.B) {
6763 Store : passhash.DummyCredentialStore {}, PasswordPolicies : []passhash.PasswordPolicy {},
6864 }
6965 userID := passhash .UserID (0 )
70- password := "insecurepassword"
7166 for i := 0 ; i < b .N ; i ++ {
72- config .NewCredential (userID , password )
67+ config .NewCredential (userID , testPassword ) // nolint: errcheck
7368 }
7469}
7570
@@ -80,8 +75,7 @@ func BenchmarkDefaultWorkFactorScrypt(b *testing.B) {
8075 Store : passhash.DummyCredentialStore {}, PasswordPolicies : []passhash.PasswordPolicy {},
8176 }
8277 userID := passhash .UserID (0 )
83- password := "insecurepassword"
8478 for i := 0 ; i < b .N ; i ++ {
85- config .NewCredential (userID , password )
79+ config .NewCredential (userID , testPassword ) // nolint: errcheck
8680 }
8781}
0 commit comments