From 2880bdc4018acfed893c74d15af5143313550701 Mon Sep 17 00:00:00 2001 From: Roberto Franchini Date: Wed, 15 Jan 2025 15:03:30 +0100 Subject: [PATCH] chore: add delay to fix test --- engine/src/test/java/com/arcadedb/TypeConversionTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/test/java/com/arcadedb/TypeConversionTest.java b/engine/src/test/java/com/arcadedb/TypeConversionTest.java index 2c3bb55ca..ae296e6e5 100644 --- a/engine/src/test/java/com/arcadedb/TypeConversionTest.java +++ b/engine/src/test/java/com/arcadedb/TypeConversionTest.java @@ -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));