• 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
Documentation Loading commit data...
Godeps Loading commit data...
admin Loading commit data...
client Loading commit data...
cmd Loading commit data...
connector Loading commit data...
contrib Loading commit data...
db Loading commit data...
email Loading commit data...
examples Loading commit data...
functional Loading commit data...
integration Loading commit data...
pkg Loading commit data...
refresh Loading commit data...
repo Loading commit data...
schema Loading commit data...
server Loading commit data...
session Loading commit data...
static Loading commit data...
user Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
DCO Loading commit data...
Dockerfile Loading commit data...
Dockerfile-builder Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
NOTICE Loading commit data...
README.md Loading commit data...
build Loading commit data...
build-docker-push Loading commit data...
build-units Loading commit data...
cover Loading commit data...
git-version Loading commit data...
go-docker Loading commit data...
release Loading commit data...
test Loading commit data...
test-functional Loading commit data...