Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 09a55c8

Browse files
Update test comment
Co-authored-by: Julien Duchesne <julien.duchesne@grafana.com>
1 parent 271195b commit 09a55c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ func TestRequest_200UnmarshalPut(t *testing.T) {
180180
}
181181

182182
func TestClient_requestWithRetries(t *testing.T) {
183-
// It looks like if the call to c.client.Do doesn't read the body
184-
// before returning an error, then bodyBuffer never gets populated
185-
// and every retry ends up with a blank body.
183+
// Test that calls to c.client.Do will retry correctly,
184+
// even if the original request fails prematurely
186185

187186
body := []byte(`lorem ipsum dolor sit amet`)
188187

0 commit comments

Comments
 (0)