From 3ada8fb079c5e6b36e2cf1c5b0de1a296f3310a6 Mon Sep 17 00:00:00 2001 From: umanwizard Date: Wed, 3 Jan 2024 09:25:34 -0500 Subject: [PATCH] Fix flake in statement logging test. (#24185) The 5-second wait seems to sometimes not be enough; see e.g. https://github.com/MaterializeInc/materialize/issues/24041 Hopefully this will fix that issue. If not, we will need to do something more principled (e.g. make the logging timer configurable) --- src/environmentd/tests/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environmentd/tests/server.rs b/src/environmentd/tests/server.rs index 51bd0cac134f6..b8f5aa50824a2 100644 --- a/src/environmentd/tests/server.rs +++ b/src/environmentd/tests/server.rs @@ -268,7 +268,7 @@ fn test_statement_logging_immediate() { } // Statement logging happens async, give it a chance to catch up - thread::sleep(Duration::from_secs(5)); + thread::sleep(Duration::from_secs(10)); let mut client = server.connect_internal(postgres::NoTls).unwrap(); let sl = client