diff options
author | Nbiba Bedis <bedisnbiba@gmail.com> | 2023-08-25 20:02:09 +0100 |
---|---|---|
committer | cyqsimon <28627918+cyqsimon@users.noreply.github.com> | 2023-08-26 23:24:38 +0800 |
commit | 09b13f358dc379703e089274aa1ced7f5540499f (patch) | |
tree | 4a08917e0f9a6ce4686e57c43c0e3510edac23a2 | |
parent | 1220808adbb9143b0ebc4f685519b3774af08dfc (diff) |
fix: fix snapshot tests
97 files changed, 2696 insertions, 1147 deletions
diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap new file mode 100644 index 0000000..604d40f --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__bi_directional_traffic.snap @@ -0,0 +1,13 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: +<NO TRAFFIC> + +Refreshing: +process: <TIMESTAMP_REMOVED> "1" up/down Bps: 24/25 connections: 1 +connection: <TIMESTAMP_REMOVED> <interface_name>:443 => 1.1.1.1:12345 (tcp) up/down Bps: 24/25 process: "1" +remote_address: <TIMESTAMP_REMOVED> 1.1.1.1 up/down Bps: 24/25 connections: 1 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap new file mode 100644 index 0000000..140d2b4 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_connections_from_remote_address.snap @@ -0,0 +1,14 @@ +--- +source: src/tests/cases/raw_mode.rs +expression: formatted +--- +Refreshing: +<NO TRAFFIC> + +Refreshing: +process: <TIMESTAMP_REMOVED> "1" up/down Bps: 0/47 connections: 2 +connection: <TIMESTAMP_REMOVED> <interface_name>:443 => 1.1.1.1:12346 (tcp) up/down Bps: 0/25 process: "1" +connection: <TIMESTAMP_REMOVED> <interface_name>:443 => 1.1.1.1:12345 (tcp) up/down Bps: 0/22 process: "1" +remote_address: <TIMESTAMP_REMOVED> 1.1.1.1 up/down Bps: 0/47 connections: 2 + + diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap new file mode 100644 index 0000000..8d4d513 --- /dev/null +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__raw_mode__multiple_packets_of_traffic_from_different_connections.snap @@ -0,0 +1,15 @@ +-- |