Skip to content

Commit

Permalink
metadata/updater: fix missing resp body in Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
anitgandhi committed Dec 13, 2024
1 parent c637d07 commit a29a6a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/metadata/updater/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func Test_agentInfoUpdaterImpl_Update(t *testing.T) {
ExpectedRequest: newRequest(t, []byte("{\"dotty_status\":\"running\",\"ssh_info\":{\"port\":256}}")),
}

client.EXPECT().Do(reqMatcher).Return(&http.Response{StatusCode: 202}, nil)
client.EXPECT().Do(reqMatcher).Return(&http.Response{StatusCode: 202, Body: respBody}, nil)
respBody.EXPECT().Close()
},
false,
},
Expand Down

0 comments on commit a29a6a7

Please sign in to comment.