Skip to content

Commit

Permalink
mod: update github.com/flamego/flamego (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon authored Nov 28, 2021
1 parent f6fd46b commit faff472
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 13 deletions.
6 changes: 3 additions & 3 deletions csrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ func TestTokenExpired(t *testing.T) {

f.Get("/touch", func(x CSRF) string { return x.Token() })
f.Post("/set-expired", Validate, func(s session.Session) {
// NOTE: Time seems flaky within one second on Windows, so let's be a little bit
// more extreme.
s.Set(tokenExpiredAtKey, time.Now().Add(-1*time.Second))
// NOTE: Time seems flaky within a minute on Windows in CI, so let's be a little
// more extreme.
s.Set(tokenExpiredAtKey, time.Now().Add(-1*time.Minute))
})

resp := httptest.NewRecorder()
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/flamego/csrf
go 1.16

require (
github.com/flamego/flamego v0.0.0-20210731140954-4f6acd0c1259
github.com/flamego/session v0.0.0-20210607182212-8d30fdff82f2
github.com/flamego/flamego v1.0.0
github.com/flamego/session v1.0.0
github.com/stretchr/testify v1.7.0
)
Loading

0 comments on commit faff472

Please sign in to comment.