Skip to content

Commit 9a6d859

Browse files
committed
test: enhance count test with delay
Added a delay in the count test to ensure proper execution timing and reliability of the test results. Signed-off-by: Maximillian Arruda <[email protected]>
1 parent d6889ea commit 9a6d859

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jnosql-couchbase/src/test/java/org/eclipse/jnosql/databases/couchbase/communication/CouchbaseDocumentManagerTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,10 @@ void shouldRetrieveListDocumentList() {
206206
}
207207

208208
@Test
209-
void shouldCount() {
209+
void shouldCount() throws InterruptedException {
210210
CommunicationEntity entity = entityManager.insert(createSubdocumentList());
211+
Thread.sleep(1_000L);
212+
211213
Element key = entity.find("_id").get();
212214
var query = select().from(COLLECTION_APP_NAME).where(key.name()).eq(key.get()).build();
213215

0 commit comments

Comments
 (0)