Skip to content

Commit bcfcc68

Browse files
Disable some flaky tests
1 parent 7f96ff6 commit bcfcc68

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

temporal-sdk/src/test/java/io/temporal/workflow/queryTests/DirectQueryReplaysDontSpamLogWithWorkflowExecutionExceptionsTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.temporal.workflow.queryTests;
22

33
import static org.junit.Assert.*;
4+
import static org.junit.Assume.assumeTrue;
45

56
import ch.qos.logback.classic.Logger;
67
import ch.qos.logback.classic.spi.ILoggingEvent;
@@ -72,6 +73,8 @@ public void queriedWorkflowFailureDoesntProduceAdditionalLogs() {
7273

7374
@Test
7475
public void queriedWorkflowFailureDoesntProduceAdditionalLogsWhenWorkflowIsNotCompleted() {
76+
assumeTrue("This test is flaky on the Test Server", SDKTestWorkflowRule.useExternalService);
77+
7578
TestWorkflows.QueryableWorkflow workflow =
7679
testWorkflowRule.newWorkflowStub(TestWorkflows.QueryableWorkflow.class);
7780

temporal-sdk/src/test/java/io/temporal/workflow/updateTest/UpdateWithStartTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static io.temporal.workflow.shared.TestMultiArgWorkflowFunctions.*;
44
import static org.junit.Assert.*;
5+
import static org.junit.Assume.assumeTrue;
56
import static org.mockito.ArgumentMatchers.any;
67
import static org.mockito.Mockito.*;
78

@@ -490,6 +491,8 @@ public void handleSuccessfulStartButUpdateOnlyErr() {
490491

491492
@Test
492493
public void timeoutError() {
494+
assumeTrue("This test is flaky on the Test Server", SDKTestWorkflowRule.useExternalService);
495+
493496
testWorkflowRule.getTestEnvironment().shutdownNow();
494497
testWorkflowRule.getTestEnvironment().awaitTermination(5, TimeUnit.SECONDS);
495498

0 commit comments

Comments
 (0)