Skip to content

Commit

Permalink
chore: add delay to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrank committed Jan 22, 2025
1 parent 4a97d98 commit 2880bdc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/src/test/java/com/arcadedb/TypeConversionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,12 @@ public void testSQLMath() {
ResultSet resultSet = database.command("sql", "insert into ConversionTest set datetime_micros = ?", date1);
assertThat(resultSet.next().toElement().get("datetime_micros")).isEqualTo(date1.truncatedTo(ChronoUnit.MICROS));

try {
TimeUnit.MILLISECONDS.sleep(10);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

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

Expand Down

0 comments on commit 2880bdc

Please sign in to comment.