Skip to content
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