Update tests to work with go 1.15

This commit is contained in:
TeoV
2020-08-20 12:48:10 +03:00
committed by Dan Christian Bogos
parent 97b0169edd
commit 0978e200cf
12 changed files with 129 additions and 127 deletions

View File

@@ -145,7 +145,7 @@ func TestVerifyCredential(t *testing.T) {
{"foo", "bar", map[string]string{"test": "1234", "foo": hashedPasswords["bar"]}, true},
{"foo", "1234", map[string]string{"test": "1234", "foo": hashedPasswords["bar"]}, false},
{"none", "1234", map[string]string{"test": "1234", "foo": hashedPasswords["bar"]}, false},
{"test", "1234", map[string]string{"test": "1234" + string(0), "foo": hashedPasswords["bar"]}, false},
{"test", "1234", map[string]string{"test": "12340", "foo": hashedPasswords["bar"]}, false},
}
for _, tt := range verifyCredentialTests {