summaryrefslogtreecommitdiffstats
path: root/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connecti...
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__multiple_packets_of_traffic_from_single_connection-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__multiple_packets_of_traffic_from_single_connection-2.snap')
-rw-r--r--src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap64
1 files changed, 12 insertions, 52 deletions
diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap
index 344a6ac..723b4bc 100644
--- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap
+++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection-2.snap
@@ -1,55 +1,15 @@
---
source: src/tests/cases/ui.rs
-expression: "&terminal_draw_events_mirror[1]"
+expression: terminal_events.lock().unwrap().as_slice()
---
- 45Bps
-
-
- 1 1 0Bps / 45Bps 1.1.1.1 1 0Bps / 45Bps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <interface_name>:443 => 1.1.1.1:12345 (tcp) 1 0Bps / 45Bps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+[
+ Clear,
+ HideCursor,
+ Draw,
+ HideCursor,
+ Flush,
+ Draw,
+ HideCursor,
+ Flush,
+ ShowCursor,
+]