Skip to content

Commit 1d97ad6

Browse files
committed
fix: flaky test (crashes when list is empty)
1 parent 7384fe9 commit 1d97ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/src/test/kotlin/org/neo4j/connectors/kafka/source/Neo4jQueryTaskTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ class Neo4jQueryTaskTest {
607607
until(30.seconds) {
608608
task.poll()?.let { list.addAll(it) }
609609
val actualList = list.map { (it.value() as Struct).toMap() }
610-
actualList.first() == expected
610+
actualList.firstOrNull() == expected
611611
}
612612
}
613613
}

0 commit comments

Comments
 (0)