Skip to content

Commit

Permalink
Calculate the asserting string once. (#1419)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 2ce31ffb0c797e3993dd56ad69cbdf248548aa02
  • Loading branch information
orcunc authored and actions-user committed Apr 22, 2024
1 parent f54ffa5 commit 2e640a1
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -334,8 +334,9 @@ public static void assertJobSuspendedEventually(Job job) {

public static void assertJobStatusEventually(Job job, JobStatus expected, int timeoutSeconds) {
assertNotNull(job);
String message = "jobId=" + idToString(job.getId());
assertTrueEventually(() ->
assertEquals("jobId=" + idToString(job.getId()), expected, job.getStatus()), timeoutSeconds);
assertEquals(message, expected, job.getStatus()), timeoutSeconds);
}

public static JetServiceBackend getJetServiceBackend(HazelcastInstance instance) {
Expand Down

0 comments on commit 2e640a1

Please sign in to comment.