Increasing the time allowed for Run to finish its operation.

This commit is contained in:
Jakub Sobon 2019-01-26 22:53:03 -05:00
parent 6f33bdde28
commit 9fcc00f462
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 2 additions and 2 deletions

View File

@ -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 {