Skip to content

Commit 1aa6a48

Browse files
committed
make sure watcher is synced
1 parent 3cd9cc1 commit 1aa6a48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/agentcontainers/api_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,9 @@ func TestAPI(t *testing.T) {
773773

774774
clk.Set(time.Now()).MustWait(ctx)
775775

776+
// Make sure the start loop has been called.
777+
watcher.waitNext(ctx)
778+
776779
// Simulate a file modification event to make the devcontainer dirty.
777780
watcher.sendEventWaitNextCalled(ctx, fsnotify.Event{
778781
Name: "/home/coder/project/.devcontainer/devcontainer.json",

0 commit comments

Comments
 (0)