Skip to content

Commit b46bd80

Browse files
committed
ignore doc tests, unignore scaling test
Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent 2bed75c commit b46bd80

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

timely/src/dataflow/operators/core/capture/capture.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ pub trait Capture<T: Timestamp, C: Container + Data> {
7272
/// use timely::dataflow::operators::{Capture, ToStream, Inspect};
7373
/// use timely::dataflow::operators::capture::{EventReader, EventWriter, Replay, Extract};
7474
///
75+
/// # #[cfg(miri)] fn main() {}
76+
/// # #[cfg(not(miri))]
77+
/// # fn main() {
7578
/// // get send and recv endpoints, wrap send to share
7679
/// let (send0, recv0) = ::std::sync::mpsc::channel();
7780
/// let send0 = Arc::new(Mutex::new(send0));
7881
///
79-
/// # #[cfg_attr(miri, ignore)]
8082
/// timely::execute(timely::Config::thread(), move |worker| {
8183
///
8284
/// // this is only to validate the output.
@@ -103,6 +105,7 @@ pub trait Capture<T: Timestamp, C: Container + Data> {
103105
/// }).unwrap();
104106
///
105107
/// assert_eq!(recv0.extract()[0].1, (0..10).collect::<Vec<_>>());
108+
/// # }
106109
/// ```
107110
fn capture_into<P: EventPusher<T, C>+'static>(&self, pusher: P);
108111

timely/src/dataflow/operators/core/capture/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
//! use timely::dataflow::operators::{Capture, ToStream, Inspect};
2525
//! use timely::dataflow::operators::capture::{EventLink, Replay};
2626
//!
27-
//! # #[cfg_attr(miri, ignore)]
27+
//! # #[cfg(miri)] fn main() {}
28+
//! # #[cfg(not(miri))]
29+
//! # fn main() {
2830
//! timely::execute(timely::Config::thread(), |worker| {
2931
//! let handle1 = Rc::new(EventLink::new());
3032
//! let handle2 = Some(handle1.clone());
@@ -39,6 +41,7 @@
3941
//! .inspect(|x| println!("replayed: {:?}", x));
4042
//! })
4143
//! }).unwrap();
44+
//! # }
4245
//! ```
4346
//!
4447
//! The types `EventWriter<T, D, W>` and `EventReader<T, D, R>` can be

timely/tests/shape_scaling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn operator_scaling(scale: u64) {
5353

5454
#[test] fn subgraph_scaling_1() { subgraph_scaling(1); }
5555
#[test] fn subgraph_scaling_10() { subgraph_scaling(10); }
56-
#[test] #[cfg_attr(miri, ignore)] fn subgraph_scaling_100() { subgraph_scaling(100); }
56+
#[test] fn subgraph_scaling_100() { subgraph_scaling(100); }
5757
#[test] #[cfg_attr(miri, ignore)] fn subgraph_scaling_1000() { subgraph_scaling(1000); }
5858
#[test] #[cfg_attr(miri, ignore)] fn subgraph_scaling_10000() { subgraph_scaling(10000); }
5959
#[test] #[cfg_attr(miri, ignore)] fn subgraph_scaling_100000() { subgraph_scaling(100000); }

0 commit comments

Comments
 (0)