dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 37 forks source link

test randomly fails. #34

Closed dinever closed 8 years ago

dinever commented 8 years ago

Sometimes our CI raises this error:

Failures:
  * /home/travis/gopath/src/github.com/dinever/dingo/app/handler/admin_test.go 
  Line 47:
  Expected: '200'
  Actual:   '301'
  (Should be equal)

However, it passes if we restart the test job. I believe this is because authenticatedContext() didn't generate a good, authenticated context. Maybe we need to come up with a better way to mock up authenticated requests.