File tree 1 file changed +10
-7
lines changed
operator-framework/src/test/java/io/javaoperatorsdk/operator
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator ;
2
2
3
+ import java .time .Duration ;
4
+
3
5
import org .junit .jupiter .api .Test ;
4
6
import org .junit .jupiter .api .extension .RegisterExtension ;
5
7
@@ -40,13 +42,14 @@ void managesBulkConfigMaps() {
40
42
}
41
43
42
44
void assertNumberOfConfigMaps (int n ) {
43
- await ().untilAsserted (() -> {
44
- var cms = operator .getKubernetesClient ().configMaps ().inNamespace (operator .getNamespace ())
45
- .withLabel (LABEL_KEY , LABEL_VALUE )
46
- .list ().getItems ();
47
- assertThat (cms ).withFailMessage ("Number of items is still: " + cms .size ())
48
- .hasSize (n );
49
- });
45
+ await ().atMost (Duration .ofSeconds (20 ))
46
+ .untilAsserted (() -> {
47
+ var cms = operator .getKubernetesClient ().configMaps ().inNamespace (operator .getNamespace ())
48
+ .withLabel (LABEL_KEY , LABEL_VALUE )
49
+ .list ().getItems ();
50
+ assertThat (cms ).withFailMessage ("Number of items is still: " + cms .size ())
51
+ .hasSize (n );
52
+ });
50
53
}
51
54
52
55
private void updateSpecWithNumber (int n ) {
You can’t perform that action at this time.
0 commit comments