Skip to content

Commit

Permalink
[ISSUE apache#8623] Temporarily skip flaky unit tests on macOS (apach…
Browse files Browse the repository at this point in the history
…e#8633)

* Skip flaky tests on macOS

* Trigger ci

* Remove branch trigger
  • Loading branch information
chi3316 authored Sep 4, 2024
1 parent 720c87e commit 4c51706
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.apache.rocketmq.store.StoreCheckpoint;
import org.apache.rocketmq.store.config.StorePathConfigHelper;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.Assume;
import org.apache.rocketmq.common.MixAll;
Expand All @@ -51,6 +52,12 @@

public class DLedgerCommitlogTest extends MessageStoreTestBase {

@BeforeClass
public static void beforeClass() {
// Temporarily skip those tests on the macOS as they are flaky
Assume.assumeFalse(MixAll.isMac());
}

@Test
public void testTruncateCQ() throws Exception {
String base = createBaseDir();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class DLedgerMultiPathTest extends MessageStoreTestBase {

@Test
public void multiDirsStorageTest() throws Exception {
Assume.assumeFalse(MixAll.isMac());
Assume.assumeFalse(MixAll.isWindows());
String base = createBaseDir();
String topic = UUID.randomUUID().toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class MixCommitlogTest extends MessageStoreTestBase {
@Test
public void testFallBehindCQ() throws Exception {
Assume.assumeFalse(MixAll.isWindows());
Assume.assumeFalse(MixAll.isMac());
String base = createBaseDir();
String topic = UUID.randomUUID().toString();
String peers = String.format("n0-localhost:%d", nextPort());
Expand Down Expand Up @@ -75,6 +76,7 @@ public void testFallBehindCQ() throws Exception {

@Test
public void testPutAndGet() throws Exception {
Assume.assumeFalse(MixAll.isMac());
String base = createBaseDir();
String topic = UUID.randomUUID().toString();
String peers = String.format("n0-localhost:%d", nextPort());
Expand Down Expand Up @@ -138,6 +140,7 @@ public void testPutAndGet() throws Exception {

@Test
public void testDeleteExpiredFiles() throws Exception {
Assume.assumeFalse(MixAll.isMac());
String base = createBaseDir();
String topic = UUID.randomUUID().toString();
String peers = String.format("n0-localhost:%d", nextPort());
Expand Down

0 comments on commit 4c51706

Please sign in to comment.