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
)

 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>
  • Loading branch information
stevanbz committed Oct 28, 2022
1 parent 85cb1a5 commit 1856295
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 1856295

Please sign in to comment.