Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <[email protected]>
  • Loading branch information
ceki committed Dec 22, 2021
1 parent a612f62 commit e64e0dc
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ public class MicrosecondConverterTest {
@Test
public void smoke() {
LoggingEvent le = new LoggingEvent();
le.setNanoseconds(123456);
Instant instant = Instant.parse("2011-12-03T10:15:30Z");
instant = instant.plusNanos(123_456_789);
le.setInstant(instant);

String result = mc.convert(le);
assertEquals("123", result);
assertEquals("456", result);
}

void computeNano() {
Instant instant = Clock.systemUTC().instant();
timeStamp = instant.getEpochSecond();
nanoseconds = instant.getNano();
}
}

0 comments on commit e64e0dc

Please sign in to comment.