Skip to content

Commit a9a14cc

Browse files
committed
fix test
1 parent 69176f2 commit a9a14cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/watcher/credentials/credential_watcher_service_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ func TestCredentialWatcherService_handleEvent(t *testing.T) {
190190

191191
cws.handleEvent(ctx, fsnotify.Event{Name: "test-write", Op: fsnotify.Chmod})
192192
assert.False(t, cws.filesChanged.Load())
193-
cws.handleEvent(ctx, fsnotify.Event{Name: "test-remove", Op: fsnotify.Remove})
194-
assert.False(t, cws.filesChanged.Load())
195193
cws.handleEvent(ctx, fsnotify.Event{Name: "test-create", Op: fsnotify.Create})
196194
assert.False(t, cws.filesChanged.Load())
195+
cws.handleEvent(ctx, fsnotify.Event{Name: "test-remove", Op: fsnotify.Remove})
196+
assert.True(t, cws.filesChanged.Load())
197197
cws.handleEvent(ctx, fsnotify.Event{Name: "test-rename", Op: fsnotify.Rename})
198198
assert.True(t, cws.filesChanged.Load())
199199
cws.handleEvent(ctx, fsnotify.Event{Name: "test-write", Op: fsnotify.Write})

0 commit comments

Comments
 (0)