Skip to content

Commit

Permalink
Skip the timer test until the go core is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Feb 21, 2016
1 parent 40d07cb commit 182cd39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions timer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ func TestTimerDrain(t *testing.T) {
<-tr.C
}

func TestTimerUnfortunatelyFiresAfterStop(t *testing.T) {
func TestTimerDoesNotFireAfterStop(t *testing.T) {
t.Skip("the standard library implementation is broken")
fail := make(chan struct{})
done := make(chan struct{})
defer close(done)
Expand All @@ -58,9 +59,7 @@ func TestTimerUnfortunatelyFiresAfterStop(t *testing.T) {
}
select {
case <-fail:
t.Log("time.Timer is still broken")
return
t.FailNow()
case <-time.After(100 * time.Millisecond):
t.Fatal("time.Timer has been fixed!")
}
}

0 comments on commit 182cd39

Please sign in to comment.