Skip to content

Commit

Permalink
Comments assertion in Flaky transform runner test(opensearch-project#581
Browse files Browse the repository at this point in the history
) (opensearch-project#582)

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 <[email protected]>

Signed-off-by: Stevan Buzejic <[email protected]>
(cherry picked from commit 1856295)

Co-authored-by: Stevan Buzejic <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and stevanbz authored Oct 31, 2022
1 parent a58ea3c commit 98eb63e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ class TransformRunnerIT : TransformRestTestCase() {
assertEquals("More than expected documents indexed", 1L, metadata.stats.documentsIndexed)
assertEquals("More than expected documents processed", 4977L, metadata.stats.documentsProcessed)
assertTrue("Doesn't capture indexed time", metadata.stats.indexTimeInMillis > 0)
assertTrue("Didn't capture search time", metadata.stats.searchTimeInMillis > 0)
// In some cases it seems that the search time is less than 1ms - which causes fails on ubuntu instances (at least that was detected)
// assertTrue("Didn't capture search time", metadata.stats.searchTimeInMillis > 0)
}

fun `test invalid transform`() {
Expand Down

0 comments on commit 98eb63e

Please sign in to comment.