Skip to content

Commit

Permalink
Disable CancelAsyncOperationTest on real server for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Dec 6, 2024
1 parent b6e8ba6 commit dd9c3b2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
import io.temporal.workflow.shared.TestWorkflows;
import java.time.Duration;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

import static org.junit.Assume.assumeTrue;

public class CancelAsyncOperationTest {
@Rule
public SDKTestWorkflowRule testWorkflowRule =
Expand All @@ -46,6 +49,11 @@ public class CancelAsyncOperationTest {
.setNexusServiceImplementation(new TestNexusServiceImpl())
.build();

@Before
public void checkRealServer() {
assumeTrue(
"Test flakes on real server because of delays in the Nexus Registry", SDKTestWorkflowRule.useExternalService);
}
@Test
public void asyncOperationImmediatelyCancelled() {
TestWorkflows.TestWorkflow1 workflowStub =
Expand Down

0 comments on commit dd9c3b2

Please sign in to comment.