Skip to content

Commit

Permalink
unit test mocking client
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
  • Loading branch information
bowenlan-amzn committed Feb 22, 2025
1 parent 9032f4d commit 81c5626
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AttemptStopReplicationStep : Step(name) {
val indexName = context.metadata.index
try {
val stopIndexReplicationRequestObj = StopIndexReplicationRequest(indexName)
val response: AcknowledgedResponse = context.client.admin().indices().suspendUntil {
val response: AcknowledgedResponse = context.client.suspendUntil {
replicationPluginInterface.stopReplication(
context.client,
stopIndexReplicationRequestObj,
Expand Down
Loading

0 comments on commit 81c5626

Please sign in to comment.