Skip to content

Commit e6af91f

Browse files
authored
fixing testcode for EF UTS production (#3653)
1 parent a200475 commit e6af91f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/e2e/gc_block_volume_expansion.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
930930
err = waitForSvcPvcToReachFileSystemResizePendingCondition(ctx, svcPVCName, pollTimeout)
931931
gomega.Expect(err).NotTo(gomega.HaveOccurred())
932932

933-
ginkgo.By("Checking for conditions on pvc")
934-
pvclaim, err = waitForPVCToReachFileSystemResizePendingCondition(client, namespace, pvclaim.Name, pollTimeout)
935-
gomega.Expect(err).NotTo(gomega.HaveOccurred())
933+
isPrivateNetwork := GetBoolEnvVarOrDefault("IS_PRIVATE_NETWORK", false)
934+
if !isPrivateNetwork {
935+
ginkgo.By("Checking for conditions on pvc")
936+
pvclaim, err = waitForPVCToReachFileSystemResizePendingCondition(client, namespace, pvclaim.Name, pollTimeout)
937+
gomega.Expect(err).NotTo(gomega.HaveOccurred())
938+
}
936939

937940
ginkgo.By(fmt.Sprintf("Invoking QueryCNSVolumeWithResult with VolumeID: %s", volHandle))
938941
queryResult, err := e2eVSphere.queryCNSVolumeWithResult(volHandle)

tests/e2e/gc_metadata_syncer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,10 @@ var _ = ginkgo.Describe("[csi-guest] pvCSI metadata syncer tests", func() {
670670
pvUID := string(pv.UID)
671671
gcClusterID := strings.Replace(svcPVCName, pvcUID, "", -1)
672672

673+
time.Sleep(pollTimeoutShort)
673674
verifyEntityReferenceInCRDInSupervisor(ctx, f, pv.Spec.CSI.VolumeHandle,
674675
crdCNSVolumeMetadatas, crdVersion, crdGroup, true, pv.Spec.CSI.VolumeHandle, false, nil, false)
676+
time.Sleep(pollTimeoutShort)
675677
verifyEntityReferenceInCRDInSupervisor(ctx, f, gcClusterID+pvUID,
676678
crdCNSVolumeMetadatas, crdVersion, crdGroup, true, pv.Spec.CSI.VolumeHandle, false, nil, false)
677679

0 commit comments

Comments
 (0)