Fix: failed unit test due to setting name change

This commit is contained in:
HFO4
2020-01-15 16:10:25 +08:00
parent 90f82100cf
commit 098aa0a0c0
3 changed files with 8 additions and 6 deletions

View File

@@ -347,7 +347,7 @@ func TestHandler_Thumb(t *testing.T) {
AuthInstance: auth.HMACAuth{},
}
ctx := context.Background()
asserts.NoError(cache.Set("preview_timeout", "60", 0))
asserts.NoError(cache.Set("setting_preview_timeout", "60", 0))
resp, err := handler.Thumb(ctx, "/1.txt")
asserts.NoError(err)
asserts.True(resp.Redirect)