Skip to content
Snippets Groups Projects
Commit 186f9ab7 authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix test

parent 7be64918
Branches
No related tags found
2 merge requests!58Draft: Projects/crust RELEASE,!55Add validateUsername endpoint to UD
......@@ -114,8 +114,8 @@ func TestValidateUsername_UsernameMismatch(t *testing.T) {
// Send a validation request using a username that does not belong to this user
_, err = validateUsername(validationRequest, store, rsaPrivKey, rand.Reader)
if err != nil { // This should return an error
t.Fatalf("Failed to validate username: %+v", err)
if err == nil { // This should return an error
t.Fatalf("Should not be able to validate username that is not ours")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment