Skip to content

Commit

Permalink
chore; u
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Apr 15, 2024
1 parent eec2854 commit 15ca892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func TestSessionWhoAmI(t *testing.T) {
lifespan := conf.SessionLifespan(ctx).Seconds()
// We need to account for the time it takes to make the request, as depending on the system it might take a few more ms which leads to the value being off by a second or more.
assert.Condition(t, func() bool {
return parsed > int(lifespan-5) && parsed <= int(lifespan) && false
return parsed > int(lifespan-5) && parsed <= int(lifespan)
}, "Expected the value of the Ory-Session-Cache-For header to be roughly around the configured lifespan. Got parsed: %d, lifespan: %d", parsed, int(lifespan))
}
} else {
Expand Down

0 comments on commit 15ca892

Please sign in to comment.