mirror of
https://github.com/GyulyVGC/sniffnet.git
synced 2026-10-22 07:01:24 +00:00
fix test
This commit is contained in:
parent
58071aa47d
commit
bcdc8618c7
1 changed files with 2 additions and 3 deletions
|
|
@ -1114,7 +1114,6 @@ mod tests {
|
|||
use crate::gui::types::timing_events::TimingEvents;
|
||||
use crate::networking::types::data_info::DataInfo;
|
||||
use crate::networking::types::host::Host;
|
||||
use crate::networking::types::info_traffic::InfoTraffic;
|
||||
use crate::networking::types::traffic_direction::TrafficDirection;
|
||||
use crate::notifications::types::logged_notification::{
|
||||
DataThresholdExceeded, LoggedNotification,
|
||||
|
|
@ -1657,8 +1656,8 @@ mod tests {
|
|||
.tot_data_info
|
||||
.add_packet(0, TrafficDirection::Outgoing);
|
||||
|
||||
// Simulate a tick to apply the settings
|
||||
sniffer.update(Message::TickRun(0, InfoTraffic::default(), vec![], false));
|
||||
// Simulate an update to apply the settings
|
||||
sniffer.update(Message::Periodic);
|
||||
}
|
||||
let mut sniffer = Sniffer::new(Configs::default());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue