Skip to content

Commit 361ac82

Browse files
committed
fix test and appease linter again
1 parent 101e011 commit 361ac82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

agent/agentcontainers/api_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func TestAPI(t *testing.T) {
202202
setupMock: func(mcl *acmock.MockLister, preReq *gomock.Call) {
203203
mcl.EXPECT().List(gomock.Any()).Return(makeResponse(fakeCt), nil).After(preReq).AnyTimes()
204204
},
205-
expectedErr: assert.AnError.Error(),
205+
expected: makeResponse(fakeCt),
206206
},
207207
{
208208
name: "lister error after initial data",
@@ -263,7 +263,6 @@ func TestAPI(t *testing.T) {
263263
err := json.NewDecoder(rec.Body).Decode(got)
264264
require.NoError(t, err, "unmarshal response failed")
265265
require.ErrorContains(t, got, tc.initialData.err.Error(), "want error")
266-
return
267266
} else {
268267
var got codersdk.WorkspaceAgentListContainersResponse
269268
err := json.NewDecoder(rec.Body).Decode(&got)

0 commit comments

Comments
 (0)