mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Test: pkg/task / Fix: failed test due to policy cache
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
func TestGetPolicyByID(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
|
||||
cache.Deletes([]string{"22", "23"}, "policy_")
|
||||
// 缓存未命中
|
||||
{
|
||||
rows := sqlmock.NewRows([]string{"name", "type", "options"}).
|
||||
|
||||
Reference in New Issue
Block a user