Skip to content

Commit

Permalink
fix: replace port
Browse files Browse the repository at this point in the history
  • Loading branch information
HashMapsData2Value committed Oct 25, 2024
1 parent 252b021 commit 06b3317
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package internal

import (
"context"
"github.com/algorandfoundation/hack-tui/api"
"github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider"
"strconv"
"testing"

"github.com/algorandfoundation/hack-tui/api"
"github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider"
)

func Test_GetMetrics(t *testing.T) {
Expand All @@ -14,7 +15,7 @@ func Test_GetMetrics(t *testing.T) {
if err != nil {
t.Fatal(err)
}
client, err := api.NewClientWithResponses("http://localhost:4001", api.WithRequestEditorFn(apiToken.Intercept))
client, err := api.NewClientWithResponses("http://localhost:8080", api.WithRequestEditorFn(apiToken.Intercept))

metrics, err := GetMetrics(context.Background(), client)
if err != nil {
Expand Down

0 comments on commit 06b3317

Please sign in to comment.