Skip to content

Commit 1856295

Browse files
authored
Comments assertion in Flaky transform runner test(#581)
The transform runner test completes the search in sub-millisecond, thus failing. This is specific to Ubuntu 17 & 11 distribution. Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com> Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
1 parent 85cb1a5 commit 1856295

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/kotlin/org/opensearch/indexmanagement/transform/TransformRunnerIT.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ class TransformRunnerIT : TransformRestTestCase() {
108108
assertEquals("More than expected documents indexed", 1L, metadata.stats.documentsIndexed)
109109
assertEquals("More than expected documents processed", 4977L, metadata.stats.documentsProcessed)
110110
assertTrue("Doesn't capture indexed time", metadata.stats.indexTimeInMillis > 0)
111-
assertTrue("Didn't capture search time", metadata.stats.searchTimeInMillis > 0)
111+
// In some cases it seems that the search time is less than 1ms - which causes fails on ubuntu instances (at least that was detected)
112+
// assertTrue("Didn't capture search time", metadata.stats.searchTimeInMillis > 0)
112113
}
113114

114115
fun `test invalid transform`() {

0 commit comments

Comments
 (0)