Skip to content

Commit d2c8200

Browse files
fix(test): add missing topic field to RoutePattern in integration_bus (#256)
Fixes integration_bus.rs compilation against the RoutePattern struct that now requires a topic field. Note: depth_tests.rs has the same issue and will be fixed in a follow-up.
1 parent 90ac80a commit d2c8200

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/flight-bus/tests/integration_bus.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
use flight_bus::routing::{
1010
BusEvent, EventFilter, EventKind, EventPayload, EventPriority, EventRouter, RoutePattern,
11-
SourceType,
11+
SourceType, Topic,
1212
};
1313
use flight_bus::types::SimId;
1414
use flight_bus::{AircraftId, BusPublisher, BusSnapshot, SubscriptionConfig};
@@ -67,6 +67,7 @@ fn integration_route_matches_axis_events_only() {
6767
source_type: SourceType::Any,
6868
source_id: None,
6969
event_kind: Some(EventKind::AxisUpdate),
70+
topic: Topic::Any,
7071
};
7172
router.register_route(pattern, EventFilter::pass_all(), 1);
7273

@@ -126,6 +127,7 @@ fn integration_route_source_id_filter() {
126127
source_type: SourceType::Device,
127128
source_id: Some(42),
128129
event_kind: None,
130+
topic: Topic::Any,
129131
};
130132
router.register_route(pattern, EventFilter::pass_all(), 100);
131133

0 commit comments

Comments
 (0)