File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
operator-framework/src/test/java/io/javaoperatorsdk/operator Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator ;
22
3+ import java .time .Duration ;
4+
35import org .junit .jupiter .api .Test ;
46import org .junit .jupiter .api .extension .RegisterExtension ;
57
@@ -40,13 +42,14 @@ void managesBulkConfigMaps() {
4042 }
4143
4244 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+ });
5053 }
5154
5255 private void updateSpecWithNumber (int n ) {
You can’t perform that action at this time.
0 commit comments