mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
event: fix test
This commit is contained in:
parent
5968e03e1e
commit
4f7eef6c36
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ func TestResubscribe(t *testing.T) {
|
||||||
func TestResubscribeAbort(t *testing.T) {
|
func TestResubscribeAbort(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
done := make(chan error)
|
done := make(chan error, 1)
|
||||||
sub := Resubscribe(0, func(ctx context.Context) (Subscription, error) {
|
sub := Resubscribe(0, func(ctx context.Context) (Subscription, error) {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue