From 9fcc00f462f856b91d3ef07fa8c47d811727ba3e Mon Sep 17 00:00:00 2001 From: Jakub Sobon Date: Sat, 26 Jan 2019 22:53:03 -0500 Subject: [PATCH] Increasing the time allowed for Run to finish its operation. --- termdash_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/termdash_test.go b/termdash_test.go index 19945df..d720b56 100644 --- a/termdash_test.go +++ b/termdash_test.go @@ -174,7 +174,7 @@ func TestRun(t *testing.T) { }, }, { - desc: "fails when the widget doesn't draw", + desc: "fails when the widget doesn't draw due to size too small", size: image.Point{1, 1}, opts: []Option{ RedrawInterval(1), @@ -350,7 +350,7 @@ func TestRun(t *testing.T) { t.Fatalf("container.New => unexpected error: %v", err) } - ctx, cancel := context.WithTimeout(context.Background(), 5*time.Millisecond) + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) err = Run(ctx, got, cont, tc.opts...) cancel() if (err != nil) != tc.wantErr {