From 16c089eda68cbbb97bac25fab68160bd2d6f4f07 Mon Sep 17 00:00:00 2001 From: rajguptavm Date: Thu, 17 Oct 2024 16:56:51 +0530 Subject: [PATCH] test-fix-sts --- tests/e2e/volume_health_test.go | 4 +++- tests/e2e/vsphere_volume_expansion.go | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/e2e/volume_health_test.go b/tests/e2e/volume_health_test.go index 05ab41f8fc..f76de0abdc 100644 --- a/tests/e2e/volume_health_test.go +++ b/tests/e2e/volume_health_test.go @@ -897,7 +897,9 @@ var _ = ginkgo.Describe("Volume health check", func() { replicas := *(statefulset.Spec.Replicas) // Waiting for pods status to be Ready. fss.WaitForStatusReadyReplicas(ctx, client, statefulset, replicas) - gomega.Expect(fss.CheckMount(ctx, client, statefulset, mountPath)).NotTo(gomega.HaveOccurred()) + if !windowsEnv { + gomega.Expect(fss.CheckMount(ctx, client, statefulset, mountPath)).NotTo(gomega.HaveOccurred()) + } ssPodsBeforeScaleDown := fss.GetPodList(ctx, client, statefulset) gomega.Expect(ssPodsBeforeScaleDown.Items).NotTo(gomega.BeEmpty(), fmt.Sprintf("Unable to get list of Pods from the Statefulset: %v", statefulset.Name)) diff --git a/tests/e2e/vsphere_volume_expansion.go b/tests/e2e/vsphere_volume_expansion.go index 6eab0d91c0..640b1ab114 100644 --- a/tests/e2e/vsphere_volume_expansion.go +++ b/tests/e2e/vsphere_volume_expansion.go @@ -109,8 +109,9 @@ var _ = ginkgo.Describe("Volume Expansion Test", func() { defaultDatastore = getDefaultDatastore(ctx) if guestCluster { - svcClient, svNamespace := getSvcClientAndNamespace() - setResourceQuota(svcClient, svNamespace, rqLimit) + // svcClient, svNamespace := getSvcClientAndNamespace() + _, _ = getSvcClientAndNamespace() + // setResourceQuota(svcClient, svNamespace, rqLimit) } if windowsEnv {