Skip to content

Commit a7caa88

Browse files
committed
cargo-test: Fix smoke_test_metrics_future_ext
Flaked in https://buildkite.com/materialize/test/builds/106687
1 parent 9688c78 commit a7caa88

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ore/src/metrics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ mod tests {
888888

889889
// Record the walltime and execution time of an async sleep.
890890
let async_sleep_future = async {
891-
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
891+
tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;
892892
};
893893
runtime.block_on(
894894
async_sleep_future
@@ -911,7 +911,7 @@ mod tests {
911911
let exec_histogram = exec_metric[0].get_histogram();
912912
assert_eq!(exec_histogram.get_sample_count(), 1);
913913
// The 4th bucket is 1ms, which we should complete faster than, but is still much quicker
914-
// than the 1 second we slept for.
914+
// than the 3 seconds we slept for.
915915
assert_eq!(exec_histogram.get_bucket()[3].get_cumulative_count(), 1);
916916

917917
let wall_family = reports

test/testdrive/materialization-lag.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# tolerances into these checks that verify whether induced lag is present. A
1818
# threshold value of 2 seconds seems to work fine.
1919

20+
$ set-sql-timeout duration=60s
21+
2022
$ postgres-connect name=mz_system url=postgres://mz_system:materialize@${testdrive.materialize-internal-sql-addr}
2123

2224
$ postgres-execute connection=mz_system

0 commit comments

Comments
 (0)