Skip to content

Commit

Permalink
fix: differing inbount/outbound modalities for Hocs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitgeist committed Sep 16, 2024
1 parent c693ca6 commit f6a2327
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gen/src/arbitrary_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ impl Arbitrary for Hoc {
g: &mut quickcheck::Gen,
) -> (Option<TransportMode>, Option<TransportMode>) {
let inbound = Some(TransportMode::arbitrary(g));
let outbound = Some(TransportMode::arbitrary(g));
let mut outbound = Some(TransportMode::arbitrary(g));

if inbound == outbound {
(inbound, Some(TransportMode::arbitrary(g)))
} else {
(inbound, outbound)
while inbound == outbound {
outbound = Some(TransportMode::arbitrary(g));
}

(inbound, outbound)
}

let hub_type = HubType::arbitrary(g);
Expand Down

0 comments on commit f6a2327

Please sign in to comment.