From 5a1abc0a5cec43d7f0b0f1fcb25692126361ccc8 Mon Sep 17 00:00:00 2001 From: Doron Somech Date: Tue, 27 Sep 2022 00:03:54 +0300 Subject: [PATCH] increase delays on remote cache tests an attempt to fix #16991 --- src/rust/engine/process_execution/src/remote_cache_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rust/engine/process_execution/src/remote_cache_tests.rs b/src/rust/engine/process_execution/src/remote_cache_tests.rs index ad0f2e5e9a1..3ff98bfd256 100644 --- a/src/rust/engine/process_execution/src/remote_cache_tests.rs +++ b/src/rust/engine/process_execution/src/remote_cache_tests.rs @@ -367,17 +367,17 @@ async fn cache_read_speculation() { assert_eq!(local_call_count, 1); // Case 4: remote is faster than speculation read delay. - let (exit_code, local_call_count) = run_process(0, 100, 200, true, &mut workunit).await; + let (exit_code, local_call_count) = run_process(0, 0, 200, true, &mut workunit).await; assert_eq!(exit_code, 0); assert_eq!(local_call_count, 0); // Case 5: remote is faster than speculation read delay, but there is no cache entry so we fallback to local execution. - let (exit_code, local_call_count) = run_process(0, 100, 200, false, &mut workunit).await; + let (exit_code, local_call_count) = run_process(0, 0, 200, false, &mut workunit).await; assert_eq!(exit_code, 1); assert_eq!(local_call_count, 1); // Case 6: local with speculation read delay is faster than remote. - let (exit_code, local_call_count) = run_process(0, 200, 100, true, &mut workunit).await; + let (exit_code, local_call_count) = run_process(0, 200, 0, true, &mut workunit).await; assert_eq!(exit_code, 1); assert_eq!(local_call_count, 1); }