Skip to content

Commit

Permalink
Fixed a writeable test after changing QueryLevelTriggerRunResult from…
Browse files Browse the repository at this point in the history
… a data class to an open class for inheritability.

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Feb 6, 2024
1 parent 8f3a9ea commit 36482bb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class WriteableTests : OpenSearchTestCase() {
runResult.writeTo(out)
val sin = StreamInput.wrap(out.bytes().toBytesRef().bytes)
val newRunResult = QueryLevelTriggerRunResult(sin)
assertEquals("Round tripping ActionRunResult doesn't work", runResult, newRunResult)
assertEquals(runResult.triggerName, newRunResult.triggerName)
assertEquals(runResult.triggered, newRunResult.triggered)
assertEquals(runResult.error, newRunResult.error)
assertEquals(runResult.actionResults, newRunResult.actionResults)
}

fun `test bucket-level triggerrunresult as stream`() {
Expand Down

0 comments on commit 36482bb

Please sign in to comment.