Skip to content

Commit 5a3a370

Browse files
committed
fix panic verify failure
Signed-off-by: nhamza <[email protected]>
1 parent aa87b3a commit 5a3a370

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/extended/two_node/tnf_degraded.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ const (
3939

4040
var _ = g.Describe("[sig-apps][OCPFeatureGate:DualReplica][Suite:openshift/two-node] [Degraded] Two Node Fencing behavior in degraded mode", func() {
4141
oc := exutil.NewCLI("tnf-degraded").AsAdmin()
42-
ctx := context.Background()
43-
kubeClient := oc.AdminKubeClient()
4442

4543
g.BeforeEach(func() {
4644
utils.EnsureTNFDegradedOrSkip(oc)
4745
})
4846

4947
g.It("should allow a single eviction and block the second when PDB minAvailable=1 [apigroup:policy]", func() {
48+
ctx := context.Background()
49+
kubeClient := oc.AdminKubeClient()
50+
5051
ns := oc.Namespace()
5152
labels := map[string]string{pdbLabelKey: pdbLabelValue}
5253
selector := fmt.Sprintf("%s=%s", pdbLabelKey, pdbLabelValue)
@@ -97,6 +98,8 @@ var _ = g.Describe("[sig-apps][OCPFeatureGate:DualReplica][Suite:openshift/two-n
9798
})
9899

99100
g.It("should block a reboot-required MachineConfig rollout on the remaining master [Serial] [apigroup:machineconfiguration.openshift.io]", func() {
101+
ctx := context.Background()
102+
kubeClient := oc.AdminKubeClient()
100103
ns := oc.Namespace()
101104
mcoClient := machineconfigclient.NewForConfigOrDie(oc.AdminConfig())
102105

0 commit comments

Comments
 (0)