Skip to content

Commit

Permalink
Fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushisource committed Nov 22, 2024
1 parent 2628aa7 commit 117a08c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/core_tests/workflow_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,6 @@ async fn core_internal_flags() {
core.shutdown().await;
}

// TODO: Flakes sometimes
#[tokio::test]
async fn post_terminal_commands_are_retained_when_not_replaying() {
// History contains a non-terminal command (N) followed by the terminal
Expand Down Expand Up @@ -2581,14 +2580,14 @@ async fn _do_post_terminal_commands_test(

let act = core.poll_workflow_activation().await.unwrap();

core.initiate_shutdown();
core.complete_workflow_activation(WorkflowActivationCompletion::from_cmds(
act.run_id,
commands_sent_by_lang,
))
.await
.unwrap();

core.initiate_shutdown();
let act = core.poll_workflow_activation().await;
assert_matches!(act.unwrap_err(), PollWfError::ShutDown);
core.shutdown().await;
Expand Down

0 comments on commit 117a08c

Please sign in to comment.