Skip to content

Commit

Permalink
NO-JIRA Speeding-up I/O paging for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
franz1981 authored and clebertsuconic committed Jul 28, 2021
1 parent 63577c7 commit 4a677d0
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -137,7 +137,7 @@ public void testDoubleStart() throws Exception {
@Test
public void testPageWithNIO() throws Exception {
ActiveMQTestBase.recreateDirectory(getTestDir());
testConcurrentPaging(new NIOSequentialFileFactory(new File(getTestDir()), 1), 1);
testConcurrentPaging(new NIOSequentialFileFactory(new File(getTestDir()), 1).setDatasync(false), 1);
}

@Test
Expand Down Expand Up @@ -589,7 +589,7 @@ public void run() {
@Test
public void testRestartPage() throws Throwable {
clearDataRecreateServerDirs();
SequentialFileFactory factory = new NIOSequentialFileFactory(new File(getPageDir()), 1);
SequentialFileFactory factory = new NIOSequentialFileFactory(new File(getPageDir()), 1).setDatasync(false);

PagingStoreFactory storeFactory = new FakeStoreFactory(factory);

Expand Down Expand Up @@ -620,7 +620,7 @@ public void testRestartPage() throws Throwable {
@Test
public void testOrderOnPaging() throws Throwable {
clearDataRecreateServerDirs();
SequentialFileFactory factory = new NIOSequentialFileFactory(new File(getPageDir()), 1);
SequentialFileFactory factory = new NIOSequentialFileFactory(new File(getPageDir()), 1).setDatasync(false);

PagingStoreFactory storeFactory = new FakeStoreFactory(factory);

Expand Down Expand Up @@ -739,7 +739,7 @@ public void run() {
@Test
public void testWriteIncompletePage() throws Exception {
clearDataRecreateServerDirs();
SequentialFileFactory factory = new NIOSequentialFileFactory(new File(getPageDir()), 1);
SequentialFileFactory factory = new NIOSequentialFileFactory(new File(getPageDir()), 1).setDatasync(false);

PagingStoreFactory storeFactory = new FakeStoreFactory(factory);

Expand Down

0 comments on commit 4a677d0

Please sign in to comment.