Skip to content

Commit 3eb0aab

Browse files
authored
fix: remove problematic leader election unit test (#1496)
this test would fail for anyone that has kube config inited locally that makes is quite problematic, would rather remove it
1 parent eff9835 commit 3eb0aab

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

operator-framework-core/src/test/java/io/javaoperatorsdk/operator/LeaderElectionManagerTest.java

-8
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,4 @@ void testFailedToInitInferLeaseNamespace() {
6666
() -> leaderElectionManager.init(new LeaderElectionConfiguration("test"),
6767
kubernetesClient));
6868
}
69-
70-
@Test
71-
void testFailedToInitInferLeaseNamespaceProbablyUsingKubeConfig() {
72-
assertThrows(
73-
IllegalArgumentException.class,
74-
() -> leaderElectionManager.init(new LeaderElectionConfiguration("test"),
75-
kubernetesClient));
76-
}
7769
}

0 commit comments

Comments
 (0)