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
fix test and appease linter again
  • Loading branch information
mafredri committed May 22, 2025
commit 361ac82f1ba718fe9c3b481052d74b37cf502799
3 changes: 1 addition & 2 deletions agent/agentcontainers/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func TestAPI(t *testing.T) {
setupMock: func(mcl *acmock.MockLister, preReq *gomock.Call) {
mcl.EXPECT().List(gomock.Any()).Return(makeResponse(fakeCt), nil).After(preReq).AnyTimes()
},
expectedErr: assert.AnError.Error(),
expected: makeResponse(fakeCt),
},
{
name: "lister error after initial data",
Expand Down Expand Up @@ -263,7 +263,6 @@ func TestAPI(t *testing.T) {
err := json.NewDecoder(rec.Body).Decode(got)
require.NoError(t, err, "unmarshal response failed")
require.ErrorContains(t, got, tc.initialData.err.Error(), "want error")
return
} else {
var got codersdk.WorkspaceAgentListContainersResponse
err := json.NewDecoder(rec.Body).Decode(&got)
Expand Down
Loading