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:
parent
7ceec7a572
commit
1f41c7afee
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user