Skip to content

Commit

Permalink
Add sleep to allow server to start
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontj committed Sep 21, 2021
1 parent ce4a092 commit c25eaa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/server/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestUnauthenticatedServerFunctions(t *testing.T) {
Transport: &http.Transport{},
}

time.Sleep(time.Millisecond * 5)
resp, err := client.Get(fmt.Sprintf("http://%s/metrics", bindAddr))
if err != nil {
t.Fatalf("could not make request to metrics endpoint: %s", err.Error())
Expand Down

0 comments on commit c25eaa2

Please sign in to comment.