mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-13 14:24:04 +00:00
Update tests
This commit is contained in:
parent
3db0918eb8
commit
0cabe8de10
@ -1941,8 +1941,8 @@ func TestList(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
asl := &mockAccessSetLookup{userRoles: test.access}
|
asl := &mockAccessSetLookup{userRoles: test.access}
|
||||||
if test.disableCache {
|
if !test.disableCache {
|
||||||
t.Setenv("CATTLE_REQUEST_CACHE_DISABLED", "Y")
|
t.Setenv("CATTLE_REQUEST_CACHE_DISABLED", "false")
|
||||||
}
|
}
|
||||||
store := NewStore(mockPartitioner{
|
store := NewStore(mockPartitioner{
|
||||||
stores: stores,
|
stores: stores,
|
||||||
@ -2024,7 +2024,6 @@ func TestListByRevision(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}, asl)
|
}, asl)
|
||||||
req := newRequest("", "user1")
|
req := newRequest("", "user1")
|
||||||
t.Setenv("CATTLE_REQUEST_CACHE_DISABLED", "Y")
|
|
||||||
|
|
||||||
got, gotErr := store.List(req, schema)
|
got, gotErr := store.List(req, schema)
|
||||||
assert.Nil(t, gotErr)
|
assert.Nil(t, gotErr)
|
||||||
|
Loading…
Reference in New Issue
Block a user