Skip to content

Commit

Permalink
try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
quietlychris committed Jan 15, 2024
1 parent b342449 commit dd2de01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/udp_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn udp_subscription() {
let subscriber = NodeConfig::<Udp, f32>::new("num")
.build()
.unwrap()
.subscribe(Duration::from_millis(1))
.subscribe(Duration::from_micros(1))
.unwrap();

for i in 0..10 {
Expand All @@ -87,6 +87,7 @@ fn udp_subscription() {
node.publish(x).unwrap();
thread::sleep(Duration::from_millis(5));
let result = subscriber.get_subscribed_data().unwrap();
dbg!(&result);
assert_eq!(x, result.data);
}
}

0 comments on commit dd2de01

Please sign in to comment.