Skip to content

Commit

Permalink
TestEmitterStops
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbourgon committed May 13, 2016
1 parent 15e3d35 commit fc4c50c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metrics/graphite/graphite_test.go
Expand Up @@ -72,3 +72,9 @@ func TestGauge(t *testing.T) {
t.Errorf("gauge %s want\n%s, have\n%s", name, want, payload)
}
}

func TestEmitterStops(t *testing.T) {
e := NewEmitter("foo", "bar", "baz", time.Second, log.NewNopLogger())
time.Sleep(100 * time.Millisecond)
e.Stop()
}

0 comments on commit fc4c50c

Please sign in to comment.