• Eric Chiang's avatar
    server: fix reset password test · 4da143ca
    Eric Chiang authored
    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.
    4da143ca
Name
Last commit
Last update
..
admin.go Loading commit data...
auth_middleware.go Loading commit data...
auth_middleware_test.go Loading commit data...
client_resource.go Loading commit data...
client_resource_test.go Loading commit data...
config.go Loading commit data...
discovery_resource.go Loading commit data...
discovery_resource_test.go Loading commit data...
email_verification.go Loading commit data...
email_verification_test.go Loading commit data...
error.go Loading commit data...
error_test.go Loading commit data...
http.go Loading commit data...
http_test.go Loading commit data...
invitation.go Loading commit data...
invitation_test.go Loading commit data...
password.go Loading commit data...
password_test.go Loading commit data...
register.go Loading commit data...
register_test.go Loading commit data...
serialization.go Loading commit data...
serialization_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
testutil.go Loading commit data...
user.go Loading commit data...