Skip to content

Commit 9ce5abb

Browse files
authored
fix test by changing metrics port to 2120 (#345)
1 parent 16be541 commit 9ce5abb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/using-custom-metrics/configs/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ HTTP_PORT=9011
33
APP_NAME=using-metrics
44
APP_VERSION=v0.1.0
55

6-
METRICS_PORT=2121
6+
METRICS_PORT=2120

examples/using-custom-metrics/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ func TestIntegration(t *testing.T) {
3030
t.Fatalf("request to /transaction failed %v", err)
3131
}
3232

33-
req, _ = http.NewRequest("GET", "http://localhost:2121/metrics", nil)
33+
req, _ = http.NewRequest("GET", "http://localhost:2120/metrics", nil)
3434

3535
resp, err := c.Do(req)
3636
if err != nil {
37-
t.Fatalf("request to localhost:2121/metrics failed %v", err)
37+
t.Fatalf("request to localhost:2120/metrics failed %v", err)
3838
}
3939

4040
body, _ := io.ReadAll(resp.Body)

0 commit comments

Comments
 (0)