Skip to content

Commit b7df10a

Browse files
csvirimetacosm
authored andcommitted
fix
1 parent c652aff commit b7df10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample-operators/leader-election/src/test/java/io/javaoperatorsdk/operator/sample/LeaderElectionE2E.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void applyCRD() {
165165

166166
void applyResources(String path) {
167167
try {
168-
List<HasMetadata> resources = client.load(new FileInputStream(path)).get();
168+
List<HasMetadata> resources = client.load(new FileInputStream(path)).items();
169169
resources.forEach(hm -> {
170170
hm.getMetadata().setNamespace(namespace);
171171
if (hm.getKind().toLowerCase(Locale.ROOT).equals("clusterrolebinding")) {

0 commit comments

Comments
 (0)