4da143ca2d
TestResetPasswordHandler depended on makeToken begin called twice during the initialization of a single test case and later assuming the result would match. Because the token has a timestamp accurate to the second, occasionally the timestamps would be slightly off within a single test case and cause the test to fail. Adding a sleep statement to makeToken would cause the test to fail reliably. Define a single token for each test case outside of the struct initializer so test cases compare the same token. Closes #274 Additionally remove logging statements that dump entire HTML pages. |
||
---|---|---|
.. | ||
admin.go | ||
auth_middleware.go | ||
auth_middleware_test.go | ||
client_resource.go | ||
client_resource_test.go | ||
config.go | ||
discovery_resource.go | ||
discovery_resource_test.go | ||
email_verification.go | ||
email_verification_test.go | ||
error.go | ||
error_test.go | ||
http.go | ||
http_test.go | ||
invitation.go | ||
invitation_test.go | ||
password.go | ||
password_test.go | ||
register.go | ||
register_test.go | ||
serialization.go | ||
serialization_test.go | ||
server.go | ||
server_test.go | ||
testutil.go | ||
user.go |