-
Notifications
You must be signed in to change notification settings - Fork 449
Fix coverage tests #5735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix coverage tests #5735
Conversation
29a929a
to
8f582a0
Compare
fail::cfg( | ||
"after-merge-split", | ||
"panic(merge should be failed by directory kill switch)", | ||
) | ||
.unwrap(); | ||
merge_executor_mailbox.send_message(merge_scratch).await?; | ||
before_universe_kill.wait(); | ||
universe.kill(); | ||
after_universe_kill.wait(); | ||
fail::cfg("before-merge-split", "off").unwrap(); | ||
|
||
let (exit_status, _) = merge_executor_handle.join().await; | ||
assert!(matches!(exit_status, ActorExitStatus::Failure(_))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fulmicoton-dd I know you wrote this a long time ago, but do you happen to remember why you were testing the merge_executor_handle.join()
result instead of using a panic failpoint?
Note: the actor exit status is now Killed
instead of Failure
because since #5704, merge failures return Ok()
with an error!
. log instead of failing the actor. But this is not what this test is about, hence the proposed change.
eba9dbb
to
672b689
Compare
Description
test_merge_executor_controlled_directory_kill_switch
is failing since this changeHow was this PR tested?
Describe how you tested this PR.