summaryrefslogtreecommitdiffstats
path: root/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-17 16:29:47 +0800
committerGitHub <noreply@github.com>2023-10-17 16:29:47 +0800
commitd9cc84b3732fe9cb0c819b93d67d2a6420f6a065 (patch)
tree4bcf315523d7c27d5e258f0b6beae34a3eaffbfa /src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap
parent5d2ee96900f18a106d532f8b6ccf56ddf62951d7 (diff)
Partially fix flaky tests (#308)
* Minor code style changes * Disable rendering of timestamps in tests * Update test snapshots * Test everything with insta macros (no more `assert(_eq)?`) - This has the benefit of creating snapshots for everything, allowing for later diffing * Don't use `assert_debug_snapshot` for large string outputs - This makes snapshots more human-inspectable * Code style improvement on two tests - `pause_by_space` - `rearranged_by_tab` * Minor code style improvements
Diffstat (limited to 'src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap')
-rw-r--r--src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap67
1 files changed, 15 insertions, 52 deletions
diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap
index d992b87..ea1dad1 100644
--- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap
+++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes-2.snap
@@ -1,55 +1,18 @@
---
source: src/tests/cases/ui.rs
-expression: "&terminal_draw_events_mirror[2]"
+expression: terminal_events.lock().unwrap().as_slice()
---
- 65
-
-
- 35 35
- 30 30
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 35
- 30
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+[
+ Clear,
+ HideCursor,
+ Draw,
+ HideCursor,
+ Flush,
+ Draw,
+ HideCursor,
+ Flush,
+ Draw,
+ HideCursor,
+ Flush,
+ ShowCursor,
+]