Skip to content

Commit

Permalink
fix flaky workflow test.
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Jun 19, 2023
1 parent e58cfbf commit f7a96e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import org.opensearch.rest.RestStatus
import org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder
import org.opensearch.search.builder.SearchSourceBuilder
import org.opensearch.test.junit.annotations.TestLogging
import java.time.Instant
import java.util.Collections
import java.util.Locale
import java.util.UUID
Expand Down Expand Up @@ -653,7 +654,7 @@ class WorkflowRestApiIT : AlertingRestTestCase() {
)
}
}
val updatedWorkflow = updateWorkflow(workflowResponse.copy(enabled = true, enabledTime = workflow.enabledTime))
val updatedWorkflow = updateWorkflow(workflowResponse.copy(enabled = true, enabledTime = Instant.now()))
assertNotNull(updatedWorkflow)
val getWorkflow = getWorkflow(workflowId = updatedWorkflow.id)
assertTrue(getWorkflow.enabled)
Expand Down

0 comments on commit f7a96e8

Please sign in to comment.