Merge pull request #97 from mum4k/79-flaky-test

Increasing the time allowed for Run to finish its operation.
This commit is contained in:
Jakub Sobon 2019-01-26 23:07:13 -05:00 committed by GitHub
commit 90e3ec7282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bugfixes in the braille canvas.
- Lint errors reported on the Go report card.
- Flaky behavior in termdash_test.
## [0.4.0] - 15-Jan-2019

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 {