diff --git a/temporal-sdk/src/test/java/io/temporal/client/schedules/ScheduleTest.java b/temporal-sdk/src/test/java/io/temporal/client/schedules/ScheduleTest.java index ce5238e6e..ba52e1edd 100644 --- a/temporal-sdk/src/test/java/io/temporal/client/schedules/ScheduleTest.java +++ b/temporal-sdk/src/test/java/io/temporal/client/schedules/ScheduleTest.java @@ -568,7 +568,11 @@ public void testInterceptors() { client.createSchedule( scheduleId, createTestSchedule().build(), ScheduleOptions.newBuilder().build()); try { - assertTrue(client.listSchedules().anyMatch(s -> s.getScheduleId().equals(scheduleId))); + List scheds = client.listSchedules().collect(Collectors.toList()); + System.out.println("id: " + handle.getId()); + System.out.println( + "Schedules: " + scheds.stream().map(s -> s.getScheduleId()).collect(Collectors.toList())); + assertTrue(scheds.stream().anyMatch(s -> s.getScheduleId().equals(scheduleId))); handle.describe(); handle.pause(); handle.unpause();