From 3dd0e3e125bfdf0b9acf7ceed04d070e2094439d Mon Sep 17 00:00:00 2001 From: tycho garen Date: Fri, 24 Sep 2021 16:16:45 -0400 Subject: [PATCH] shorten timeout --- internal/statesync/reactor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/statesync/reactor_test.go b/internal/statesync/reactor_test.go index 22a56ce40..7bcfe39af 100644 --- a/internal/statesync/reactor_test.go +++ b/internal/statesync/reactor_test.go @@ -525,7 +525,7 @@ func TestReactor_StateProviderP2P(t *testing.T) { rts.reactor.cfg.UseP2P = true rts.reactor.cfg.TrustHeight = 1 rts.reactor.cfg.TrustHash = fmt.Sprintf("%X", chain[1].Hash()) - ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() rts.reactor.mtx.Lock()