Skip to content

Commit b63450a

Browse files
authored
fix: Fixed TestInfo test (#1248)
1 parent 869b655 commit b63450a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/v1/server/server_test.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ import (
3232
)
3333

3434
func TestInfo(t *testing.T) {
35-
resp := info(t)
36-
37-
resp.Status(http.StatusOK).
35+
info(t).
36+
Status(http.StatusOK).
3837
JSON().
3938
Object().
4039
Value("server_version").NotNull()
4140
}
4241

4342
func info(t *testing.T) *httpexpect.Response {
4443
e := httpexpect.New(t, config.GetBaseURL())
45-
return e.GET(config.GetBaseURL() + "/v1/observability/info").
44+
return e.GET("/v1/observability/info").
4645
Expect()
4746
}
4847

0 commit comments

Comments
 (0)