Skip to content

Commit

Permalink
fix up travis test failure via race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chelseakomlo committed Sep 5, 2017
1 parent 681a3f3 commit ef4aef0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ func TestClient_BaseLabels(t *testing.T) {
t.Fatalf("err: %v", err)
}

// directly invoke this function, as otherwise this will fail on a CI build
// due to a race condition
client.emitStats()

baseLabels := client.baseLabels
assert.NotEqual(0, len(baseLabels))

Expand Down

0 comments on commit ef4aef0

Please sign in to comment.