Fix: failed test due to policy cache

This commit is contained in:
HFO4
2020-03-18 09:47:06 +08:00
parent 0eb04ed0ea
commit 65cf0f57aa
3 changed files with 3 additions and 4 deletions

View File

@ -62,7 +62,6 @@ func TestIsFunctionEnabled(t *testing.T) {
c.Params = []gin.Param{}
c.Request, _ = http.NewRequest("POST", "/api/v3/file/dellete/1", nil)
TestFunc(c)
asserts.NoError(mock.ExpectationsWereMet())
asserts.True(c.IsAborted())
}
// 开启
@ -72,7 +71,6 @@ func TestIsFunctionEnabled(t *testing.T) {
c.Params = []gin.Param{}
c.Request, _ = http.NewRequest("POST", "/api/v3/file/dellete/1", nil)
TestFunc(c)
asserts.NoError(mock.ExpectationsWereMet())
asserts.False(c.IsAborted())
}