From e9784c19ae5fc5a035c5337a8cd9d5c2487d1a50 Mon Sep 17 00:00:00 2001 From: Jacob LeGrone Date: Mon, 20 Sep 2021 14:07:05 -0400 Subject: [PATCH] shorten test timeout --- temporaltest/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temporaltest/server_test.go b/temporaltest/server_test.go index 8ae68395..dbb87a90 100644 --- a/temporaltest/server_test.go +++ b/temporaltest/server_test.go @@ -72,7 +72,7 @@ func TestNewServer(t *testing.T) { } defer w.Stop() - ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() wfr, err := c.ExecuteWorkflow( @@ -110,7 +110,7 @@ func BenchmarkRunWorkflow(b *testing.B) { for i := 0; i < b.N; i++ { func(b *testing.B) { - ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() wfr, err := c.ExecuteWorkflow(