Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: thanks copilot
  • Loading branch information
DanielleMaywood committed Jul 14, 2025
commit d99373f9b1cfc569dc55bcb5876f38aea55b0963
6 changes: 3 additions & 3 deletions agent/agentcontainers/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,7 @@ func TestAPI(t *testing.T) {
err = api.RefreshContainers(ctx)
require.NoError(t, err)

return len(fakeSAC.created) > 0
return len(fakeSAC.agents) == 1
}, testutil.WaitShort, testutil.IntervalFast, "subagent should be created after config change")

t.Log("Phase 2: Cont, waiting for sub agent to exit")
Expand Down Expand Up @@ -2927,8 +2927,8 @@ func TestAPI(t *testing.T) {
err = api.RefreshContainers(ctx)
require.NoError(t, err)

return len(fakeSAC.created) > 0
}, testutil.WaitShort, testutil.IntervalFast, "subagent should be created after config change")
return len(fakeSAC.agents) == 0
}, testutil.WaitShort, testutil.IntervalFast, "subagent should be deleted after config change")

req = httptest.NewRequest(http.MethodGet, "/", nil).WithContext(ctx)
rec = httptest.NewRecorder()
Expand Down
Loading