Skip to content

Commit

Permalink
Fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikko-andersen committed Oct 3, 2024
1 parent c6f6419 commit 910dfbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,8 @@ class OpenStackService(
Thread.sleep(config.monitor.delay)
}
logger.error("Job: ${job.openstackName} Job could not be deleted: $job")
sendJobFailedMessage(job.id, "Job deletion failed. Please try again later.")
// TODO: should we send a status in this case and what should the wording be
//sendJobFailedMessage(job.id, "Job deletion failed. Please try again later.")
}

fun asyncMonitorStackSuspensions(jobs: List<Job>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ class OpenStackServiceTest(
)

openStackService.monitorDeletion(job)

verify(inverse = true) { openStackService.sendJobStatusMessage(job.id, any(), any()) }
}

@Test
Expand Down

0 comments on commit 910dfbc

Please sign in to comment.