diff --git a/api/prometheus/v1/api_test.go b/api/prometheus/v1/api_test.go
index <HASH>..<HASH> 100644
--- a/api/prometheus/v1/api_test.go
+++ b/api/prometheus/v1/api_test.go
@@ -613,6 +613,7 @@ func TestAPIClientDo(t *testing.T) {
 		{
 			response: &apiResponse{
 				Status:    "error",
+				Data:      json.RawMessage(`null`),
 				ErrorType: ErrBadData,
 				Error:     "end timestamp must not be before start time",
 			},
Add non-nil Data because Go <I> needs it