@@ -73,25 +73,6 @@ public void run() {
7373 t .start ();
7474 }
7575
76- @ Test
77- public void testInvalidDelayValues () {
78- final JavaFxScheduler scheduler = new JavaFxScheduler ();
79- final Worker inner = scheduler .createWorker ();
80- final Action0 action = mock (Action0 .class );
81-
82- exception .expect (IllegalArgumentException .class );
83- inner .schedulePeriodically (action , -1L , 100L , TimeUnit .SECONDS );
84-
85- exception .expect (IllegalArgumentException .class );
86- inner .schedulePeriodically (action , 100L , -1L , TimeUnit .SECONDS );
87-
88- exception .expect (IllegalArgumentException .class );
89- inner .schedulePeriodically (action , 1L + Integer .MAX_VALUE , 100L , TimeUnit .MILLISECONDS );
90-
91- exception .expect (IllegalArgumentException .class );
92- inner .schedulePeriodically (action , 100L , 1L + Integer .MAX_VALUE / 1000 , TimeUnit .SECONDS );
93- }
94-
9576 @ Test
9677 public void testPeriodicScheduling () throws Exception {
9778 final JavaFxScheduler scheduler = new JavaFxScheduler ();
@@ -114,7 +95,7 @@ public void call() {
11495
11596 inner .schedulePeriodically (action , 50 , 200 , TimeUnit .MILLISECONDS );
11697
117- if (!latch .await (5000 , TimeUnit .MILLISECONDS )) {
98+ if (!latch .await (1 , TimeUnit .SECONDS )) {
11899 fail ("timed out waiting for tasks to execute" );
119100 }
120101
0 commit comments