diff options
Diffstat (limited to 'modules/auth/openid/discovery_cache_test.go')
-rw-r--r-- | modules/auth/openid/discovery_cache_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/auth/openid/discovery_cache_test.go b/modules/auth/openid/discovery_cache_test.go index 9de65a57bb..2e37058cc3 100644 --- a/modules/auth/openid/discovery_cache_test.go +++ b/modules/auth/openid/discovery_cache_test.go @@ -9,7 +9,8 @@ import ( "time" ) -type testDiscoveredInfo struct {} +type testDiscoveredInfo struct{} + func (s *testDiscoveredInfo) ClaimedID() string { return "claimedID" } @@ -21,7 +22,7 @@ func (s *testDiscoveredInfo) OpLocalID() string { } func TestTimedDiscoveryCache(t *testing.T) { - dc := newTimedDiscoveryCache(1*time.Second) + dc := newTimedDiscoveryCache(1 * time.Second) // Put some initial values dc.Put("foo", &testDiscoveredInfo{}) //openid.opEndpoint: "a", openid.opLocalID: "b", openid.claimedID: "c"}) |