Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrank committed Oct 23, 2024
1 parent 68ba3e7 commit de95474
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/src/test/java/com/arcadedb/TypeConversionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,12 @@ public void testSQLMath() {
try {
database.begin();
final LocalDateTime date1 = LocalDateTime.now();
final LocalDateTime date2 = LocalDateTime.now().plusSeconds(1);

ResultSet resultSet = database.command("sql", "insert into ConversionTest set datetime_micros = ?", date1);
assertThat(resultSet.hasNext()).isTrue();
assertThat(resultSet.next().toElement().get("datetime_micros")).isEqualTo(date1.truncatedTo(ChronoUnit.MICROS));

final LocalDateTime date2 = LocalDateTime.now().plusSeconds(1);
resultSet = database.command("sql", "insert into ConversionTest set datetime_micros = ?", date2);
assertThat(resultSet.hasNext()).isTrue();
assertThat(resultSet.next().toElement().get("datetime_micros")).isEqualTo(date2.truncatedTo(ChronoUnit.MICROS));
Expand All @@ -499,7 +500,7 @@ public void testSQLMath() {
assertThat(resultSet.hasNext()).isFalse();

try {
Thread.sleep(1001);
TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit de95474

Please sign in to comment.