Skip to content

Commit 5bf0997

Browse files
committed
Trying to increase concurrent testing period to please Travis' overloaded VMs
1 parent c4f615b commit 5bf0997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ mod tests {
468468
fn uncontended_concurrent_access() {
469469
// We will stress the infrastructure by performing this many writes
470470
// as a reader continuously reads the latest value
471-
const TEST_WRITE_COUNT: u64 = 10_000;
471+
const TEST_WRITE_COUNT: u64 = 5_000;
472472

473473
// This is the buffer that our reader and writer will share
474474
let buf = ::TripleBuffer::new(0u64);
@@ -482,7 +482,7 @@ mod tests {
482482
for value in 1..(TEST_WRITE_COUNT + 1) {
483483
buf_input.write(value);
484484
thread::yield_now();
485-
thread::sleep(Duration::from_millis(1));
485+
thread::sleep(Duration::from_millis(2));
486486
}
487487
},
488488
move || {

0 commit comments

Comments
 (0)