Skip to content

Commit

Permalink
updated to release BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Austin committed Jan 7, 2016
1 parent 4deecb3 commit 514093f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chronicle-queue/pom.xml
Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>net.openhft</groupId>
<artifactId>chronicle-bom</artifactId>
<version>1.10.43-SNAPSHOT</version>
<version>1.10.43</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Expand Up @@ -179,7 +179,7 @@ public void testAppendAndReadWithRolling() throws IOException {
}
}

@Ignore("todo - rob to fix")

@Test
public void testAppendAndReadWithRolling2() throws IOException {
final File dir = getTmpDir();
Expand Down Expand Up @@ -449,4 +449,27 @@ public void testIndex() throws Exception {
}


@Test
public void testEPOC() throws Exception {

File file = File.createTempFile("chronicle.", "q");
file.deleteOnExit();
try {

final ChronicleQueue chronicle = new SingleChronicleQueueBuilder(getTmpDir())
.wireType(this.wireType)
.epoc(System.currentTimeMillis())
.rollCycle(RollCycles.HOURS)
.build();

final ExcerptAppender appender = chronicle.createAppender();
appender.writeDocument(wire -> wire.write(() -> "key").text("value=v"));
Assert.assertEquals(0, appender.cycle());

} finally {
file.delete();
}
}


}

0 comments on commit 514093f

Please sign in to comment.