Skip to content

Commit

Permalink
Added Debugging to Test
Browse files Browse the repository at this point in the history
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
  • Loading branch information
Wise-Wizard committed Jul 17, 2024
1 parent 24f5a02 commit 4d65a4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/all-in-one/all_in_one_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,15 @@ func getSamplingStrategy(t *testing.T) {
}

func getServicesAPIV3(t *testing.T) {
_, body := httpGet(t, queryAddr+getServicesAPIV3URL)
resp, body := httpGet(t, queryAddr+getServicesAPIV3URL)
t.Logf("HTTP response status: %v", resp.Status)
t.Logf("Response body: %s", body)

var servicesResponse struct {
Services []string
}
require.NoError(t, json.Unmarshal(body, &servicesResponse))
t.Logf("Services response: %v", servicesResponse.Services)
require.Len(t, servicesResponse.Services, 1)
assert.Contains(t, servicesResponse.Services[0], "jaeger")
}

0 comments on commit 4d65a4b

Please sign in to comment.