Skip to content

Commit 411dab3

Browse files
committed
clustertests: reduce flakiness
This commit makes two changes to the clustertests: 1. Reduces the propagation delay timeout when querying ReadySet to allow more time for ReadySet to reach eventual consistency. Some of our clustertests are failing intermittently due to timeouts while waiting for changes to be reflected in ReadySet. Increasing the timeout will give the tests more time to wait for eventual consistency, hopefully reducing or eliminating this kind of flakiness. 2. Fixes a bug where `EventuallyConsistentResults::empty_or` was not properly constructing an `EventuallyConsistentResults` that included an empty set of results as an allowed intermediate result. Change-Id: I560324765098310701149caf0bad8998ebd16b69 Reviewed-on: https://gerrit.readyset.name/c/readyset/+/4666 Tested-by: Buildkite CI Reviewed-by: Griffin Smith <[email protected]>
1 parent de264ee commit 411dab3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readyset-clustertest/src/readyset_mysql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use tokio::time::{sleep, timeout};
1313
use crate::utils::*;
1414
use crate::*;
1515

16-
pub const PROPAGATION_DELAY_TIMEOUT: Duration = Duration::from_secs(60);
16+
pub const PROPAGATION_DELAY_TIMEOUT: Duration = Duration::from_secs(90);
1717

1818
fn readyset_mysql(name: &str) -> DeploymentBuilder {
1919
DeploymentBuilder::new(name)

readyset-clustertest/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ where
7373
/// value. All other values should be rejected.
7474
pub fn empty_or(expected: &[T]) -> Self {
7575
Self {
76-
intermediate: Vec::new(),
76+
intermediate: vec![vec![]],
7777
expected: expected.to_vec(),
7878
}
7979
}

0 commit comments

Comments
 (0)