Skip to content

Commit

Permalink
Increase delays on remote cache tests (#17012)
Browse files Browse the repository at this point in the history
An attempt to fix #16991.
  • Loading branch information
somdoron authored Sep 27, 2022
1 parent 22bdbc1 commit 4311bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rust/engine/process_execution/src/remote_cache_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4311bd7

Please sign in to comment.