Skip to content

Commit 7ceceaf

Browse files
committed
fix: e2e bin
1 parent c0aa413 commit 7ceceaf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/e2e/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use tokio::{
1313
};
1414
use unix_utils::{
1515
request::{UnixRequest, UnixRequestData},
16-
response::{CompetitionStatusResp, Room, UnixResponse, UnixResponseData},
16+
response::{CompetitionStatusResp, PossibleRound, Room, UnixResponse, UnixResponseData},
1717
TestPacketData,
1818
};
1919

@@ -94,6 +94,11 @@ async fn handle_stream(
9494
country_iso2: Some("PL".to_string()),
9595
gender: "Male".to_string(),
9696
can_compete: competitor.can_compete,
97+
possible_rounds: Some([PossibleRound {
98+
id: "2x2-r1".to_string(),
99+
name: "2x2 R1".to_string(),
100+
use_inspection: true
101+
}].to_vec())
97102
},
98103
None => UnixResponseData::Error {
99104
message: "Competitor not found".to_string(),
@@ -415,8 +420,6 @@ async fn send_status_resp(stream: &mut UnixStream, device_store: &Vec<u32>) -> R
415420
id: "dsa".to_string(),
416421
name: "room 1".to_string(),
417422
devices: device_store.to_vec(),
418-
secondary_text: "E2E".to_string(),
419-
use_inspection: true,
420423
}],
421424
})),
422425
};

0 commit comments

Comments
 (0)