1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

First empty the queue, then redraw.

This commit is contained in:
Jakub Sobon 2018-06-19 21:46:03 -04:00
parent 7ceec7a572
commit 1f41c7afee
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7

View File

@ -529,14 +529,14 @@ func TestController(t *testing.T) {
tc.apiEvents(mi)
}
if err := untilEmpty(5*time.Second, eq); err != nil {
t.Fatalf("untilEmpty => %v", err)
}
if tc.controls != nil {
if err := tc.controls(ctrl); err != nil {
t.Errorf("controls => unexpected error: %v", err)
}
}
if err := untilEmpty(5*time.Second, eq); err != nil {
t.Fatalf("untilEmpty => %v", err)
}
if diff := faketerm.Diff(tc.want(got.Size()), got); diff != "" {
t.Errorf("Run => %v", diff)