mirror of https://github.com/mum4k/termdash.git
Increasing the time allowed for Run to finish its operation.
This commit is contained in:
parent
6f33bdde28
commit
9fcc00f462
|
@ -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},
|
size: image.Point{1, 1},
|
||||||
opts: []Option{
|
opts: []Option{
|
||||||
RedrawInterval(1),
|
RedrawInterval(1),
|
||||||
|
@ -350,7 +350,7 @@ func TestRun(t *testing.T) {
|
||||||
t.Fatalf("container.New => unexpected error: %v", err)
|
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...)
|
err = Run(ctx, got, cont, tc.opts...)
|
||||||
cancel()
|
cancel()
|
||||||
if (err != nil) != tc.wantErr {
|
if (err != nil) != tc.wantErr {
|
||||||
|
|
Loading…
Reference in New Issue