Skip to content

Commit

Permalink
fix racy test
Browse files Browse the repository at this point in the history
shadow err
  • Loading branch information
Stebalien authored and keks committed Aug 23, 2018
1 parent edded83 commit 30e8731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chan_test.go
Expand Up @@ -91,7 +91,7 @@ func TestSingle1(t *testing.T) {
go func() {
re.Emit(Single{42})

err = re.Close()
err := re.Close()
if err != ErrClosingClosedEmitter {
t.Fatalf("expected double close error, got %v", err)
}
Expand Down

0 comments on commit 30e8731

Please sign in to comment.