diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2018-08-06 00:21:11 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2018-08-07 15:43:39 +0100 |
commit | 4f2385db4b3d4171fff841594f8c591703e84b0f (patch) | |
tree | 0a28668961e727881add7753fc7e8daa0ef0d998 /server/handlers_test.go | |
parent | 162efe8828ce1c2828206e5050a2c0c175265d70 (diff) |
Unexport store implementations
Return an error if the store isn't known, instead of defaulting to a mem store
Diffstat (limited to 'server/handlers_test.go')
-rw-r--r-- | server/handlers_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/handlers_test.go b/server/handlers_test.go index 1670f2f..7f31452 100644 --- a/server/handlers_test.go +++ b/server/handlers_test.go @@ -38,7 +38,7 @@ func init() { MaxAge: "1h", }) authprovider = testprovider.New() - certstore = store.NewMemoryStore() + certstore, _ = store.New(map[string]string{"type": "mem"}) ctx = &appContext{ cookiestore: sessions.NewCookieStore([]byte("secret")), authsession: &auth.Session{AuthURL: "https://www.example.com/auth"}, |