1
Fork 0

Fiddle through the module visibilities for tests

This commit is contained in:
Oliver Scherer 2019-02-06 10:58:29 +01:00
parent a83e73dce4
commit 1dba7cb202
2 changed files with 8 additions and 8 deletions

View file

@ -158,7 +158,7 @@ impl Select {
}
/// Helper method for skipping the preflight checks during testing
fn wait2(&self, do_preflight_checks: bool) -> usize {
pub(super) fn wait2(&self, do_preflight_checks: bool) -> usize {
// Note that this is currently an inefficient implementation. We in
// theory have knowledge about all receivers in the set ahead of time,
// so this method shouldn't really have to iterate over all of them yet

View file

@ -210,7 +210,7 @@ fn cloning3() {
let mut h2 = s.handle(&rx2);
unsafe { h2.add(); }
unsafe { h1.add(); }
assert_eq!(s.wait(), h2.id);
assert_eq!(s.wait(), h2.id());
tx3.send(()).unwrap();
});
@ -256,7 +256,7 @@ fn preflight4() {
let s = Select::new();
let mut h = s.handle(&rx);
unsafe { h.add(); }
assert_eq!(s.wait2(false), h.id);
assert_eq!(s.wait2(false), h.id());
}
#[test]
@ -267,7 +267,7 @@ fn preflight5() {
let s = Select::new();
let mut h = s.handle(&rx);
unsafe { h.add(); }
assert_eq!(s.wait2(false), h.id);
assert_eq!(s.wait2(false), h.id());
}
#[test]
@ -278,7 +278,7 @@ fn preflight6() {
let s = Select::new();
let mut h = s.handle(&rx);
unsafe { h.add(); }
assert_eq!(s.wait2(false), h.id);
assert_eq!(s.wait2(false), h.id());
}
#[test]
@ -288,7 +288,7 @@ fn preflight7() {
let s = Select::new();
let mut h = s.handle(&rx);
unsafe { h.add(); }
assert_eq!(s.wait2(false), h.id);
assert_eq!(s.wait2(false), h.id());
}
#[test]
@ -300,7 +300,7 @@ fn preflight8() {
let s = Select::new();
let mut h = s.handle(&rx);
unsafe { h.add(); }
assert_eq!(s.wait2(false), h.id);
assert_eq!(s.wait2(false), h.id());
}
#[test]
@ -313,7 +313,7 @@ fn preflight9() {
let s = Select::new();
let mut h = s.handle(&rx);
unsafe { h.add(); }
assert_eq!(s.wait2(false), h.id);
assert_eq!(s.wait2(false), h.id());
}
#[test]