File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
spring-test/src/test/java/org/springframework/test/context/junit4 Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -82,30 +82,30 @@ public void springTimeoutWithNoOp() {
82
82
}
83
83
84
84
// Should Fail due to timeout.
85
- @ Test (timeout = 10 )
85
+ @ Test (timeout = 100 )
86
86
public void jUnitTimeoutWithSleep () throws Exception {
87
- Thread .sleep (20 );
87
+ Thread .sleep (200 );
88
88
}
89
89
90
90
// Should Fail due to timeout.
91
91
@ Test
92
- @ Timed (millis = 10 )
92
+ @ Timed (millis = 100 )
93
93
public void springTimeoutWithSleep () throws Exception {
94
- Thread .sleep (20 );
94
+ Thread .sleep (200 );
95
95
}
96
96
97
97
// Should Fail due to timeout.
98
98
@ Test
99
99
@ MetaTimed
100
100
public void springTimeoutWithSleepAndMetaAnnotation () throws Exception {
101
- Thread .sleep (20 );
101
+ Thread .sleep (200 );
102
102
}
103
103
104
104
// Should Fail due to timeout.
105
105
@ Test
106
- @ MetaTimedWithOverride (millis = 10 )
106
+ @ MetaTimedWithOverride (millis = 100 )
107
107
public void springTimeoutWithSleepAndMetaAnnotationAndOverride () throws Exception {
108
- Thread .sleep (20 );
108
+ Thread .sleep (200 );
109
109
}
110
110
111
111
// Should Fail due to duplicate configuration.
@@ -116,7 +116,7 @@ public void springAndJUnitTimeouts() {
116
116
}
117
117
}
118
118
119
- @ Timed (millis = 10 )
119
+ @ Timed (millis = 100 )
120
120
@ Retention (RetentionPolicy .RUNTIME )
121
121
private static @interface MetaTimed {
122
122
}
You can’t perform that action at this time.
0 commit comments