Skip to content

Commit

Permalink
Try to make TestAdminEvents more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Sep 11, 2023
1 parent cdf8cf9 commit 05e5f75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/presets/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func standalone() config.Config {
conf.Beacon.VotesLimit = 100

conf.PoETServers = []string{"http://0.0.0.0:10010"}
conf.POET.GracePeriod = 10 * time.Second
conf.POET.RequestTimeout = 3 * time.Second
conf.POET.GracePeriod = 12 * time.Second
conf.POET.RequestTimeout = 4 * time.Second
conf.POET.CycleGap = 30 * time.Second
conf.POET.PhaseShift = 30 * time.Second

Expand Down
3 changes: 2 additions & 1 deletion node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ func TestAdminEvents(t *testing.T) {
grpc.WithBlock(),
)
require.NoError(t, err)
t.Cleanup(func() { conn.Close() })
t.Cleanup(func() { assert.NoError(t, conn.Close()) })
client := pb.NewAdminServiceClient(conn)

tctx, cancel := context.WithTimeout(ctx, 2*time.Minute)
Expand Down Expand Up @@ -1144,6 +1144,7 @@ func TestAdminEvents(t *testing.T) {
require.NoError(t, err, "stream %d", i)
require.IsType(t, ev, msg.Details, "stream %d", i)
}
require.NoError(t, stream.CloseSend())
}
}

Expand Down

0 comments on commit 05e5f75

Please sign in to comment.