We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393adc9 commit bd85842Copy full SHA for bd85842
api/prometheus/v1/api_test.go
@@ -1268,12 +1268,16 @@ func TestDoGetFallback(t *testing.T) {
1268
// Start a local HTTP server.
1269
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
1270
req.ParseForm()
1271
- r := &testResponse{
+ testResp, _ := json.Marshal(&testResponse{
1272
Values: req.Form.Encode(),
1273
Method: req.Method,
1274
+ })
1275
+
1276
+ apiResp := &apiResponse{
1277
+ Data: testResp,
1278
}
1279
- body, _ := json.Marshal(r)
1280
+ body, _ := json.Marshal(apiResp)
1281
1282
if req.Method == http.MethodPost {
1283
if req.URL.Path == "/blockPost" {
0 commit comments