Skip to content
Prev Previous commit
Next Next commit
make sure watcher is synced
  • Loading branch information
mafredri committed May 21, 2025
commit 1aa6a48f5663faf6e01860d220fc41757af0f2b5
3 changes: 3 additions & 0 deletions agent/agentcontainers/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ func TestAPI(t *testing.T) {

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

// Make sure the start loop has been called.
watcher.waitNext(ctx)

// Simulate a file modification event to make the devcontainer dirty.
watcher.sendEventWaitNextCalled(ctx, fsnotify.Event{
Name: "/home/coder/project/.devcontainer/devcontainer.json",
Expand Down
Loading