Skip to content

Commit

Permalink
Disable flaky tests fow now (#5366)
Browse files Browse the repository at this point in the history
Signed-off-by: Hai Yan <[email protected]>
  • Loading branch information
oeyh authored Jan 28, 2025
1 parent 3692fc3 commit 0423cd1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import io.micrometer.core.instrument.Counter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
Expand Down Expand Up @@ -186,6 +187,7 @@ void test_data_file_loader_throws_exception_then_give_up_partition() {
verify(sourceCoordinator).giveUpPartition(dataFilePartition);
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutdown() throws InterruptedException {
DataFileScheduler objectUnderTest = createObjectUnderTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import io.micrometer.core.instrument.Counter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Answers;
Expand Down Expand Up @@ -261,6 +262,7 @@ void test_given_export_partition_and_null_export_task_id_then_close_partition_wi
verify(exportS3ObjectsTotalCounter, never()).increment(1);
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutDown() throws InterruptedException {
lenient().when(sourceCoordinator.acquireAvailablePartition(ExportPartition.PARTITION_TYPE)).thenReturn(Optional.empty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.opensearch.dataprepper.plugins.source.rds.leader;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Answers;
Expand Down Expand Up @@ -128,6 +129,7 @@ void leader_node_should_skip_init_if_initialized() throws InterruptedException {
verify(sourceCoordinator).saveProgressStateForPartition(eq(leaderPartition), any(Duration.class));
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutDown() {
lenient().when(sourceCoordinator.acquireAvailablePartition(LeaderPartition.PARTITION_TYPE)).thenReturn(Optional.empty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.opensearch.dataprepper.plugins.source.rds.stream;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Answers;
Expand Down Expand Up @@ -115,6 +116,7 @@ void test_given_stream_partition_then_start_stream() throws InterruptedException
verify(pluginConfigObservable).addPluginConfigObserver(any(PluginConfigObserver.class));
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutdown() throws InterruptedException {
lenient().when(sourceCoordinator.acquireAvailablePartition(StreamPartition.PARTITION_TYPE)).thenReturn(Optional.empty());
Expand Down

0 comments on commit 0423cd1

Please sign in to comment.