Skip to content

Commit

Permalink
tests(header/store): fix heightsub test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed May 24, 2022
1 parent e8f44bd commit 2946a86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion header/store/heightsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package store

import (
"context"
"runtime"
"testing"
"time"

Expand All @@ -11,6 +12,8 @@ import (
)

func TestHeightSub(t *testing.T) {
runtime.GOMAXPROCS(1)

ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()

Expand All @@ -34,7 +37,7 @@ func TestHeightSub(t *testing.T) {
h1 := header.RandExtendedHeader(t)
h1.Height = 101
h2 := header.RandExtendedHeader(t)
h1.Height = 101
h2.Height = 102
hs.Pub(h1, h2)
}()

Expand Down

0 comments on commit 2946a86

Please sign in to comment.