Skip to content

feat(agent/agentcontainers): update containers periodically #17972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 22, 2025
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