mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-20 12:38:08 -04:00
staticupload: don't request empty invalidation (#1870)
If no files have been touched, do not initiate an invalidation.
This commit is contained in:
parent
06cd750345
commit
fa01569cc6
2 changed files with 13 additions and 0 deletions
|
@ -357,6 +357,7 @@ func TestFlush(t *testing.T) {
|
|||
wantCacheInvalidationErr: true,
|
||||
},
|
||||
"waiting for invalidation times out": {
|
||||
dirtyKeys: []string{"test-key-1"},
|
||||
invalidationIDs: []string{
|
||||
"test-invalidation-id-2",
|
||||
"test-invalidation-id-3",
|
||||
|
@ -364,6 +365,9 @@ func TestFlush(t *testing.T) {
|
|||
cacheInvalidationWaitTimeout: time.Microsecond,
|
||||
wantCacheInvalidationErr: true,
|
||||
},
|
||||
"no invalidations": {
|
||||
dirtyKeys: []string{},
|
||||
},
|
||||
}
|
||||
|
||||
for name, tc := range testCases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue