Skip to content

Commit

Permalink
test: sleep 5s in snapshot e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Oct 11, 2023
1 parent fa91eeb commit 32d1241
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package testsuites

import (
"context"
"time"

"sigs.k8s.io/azurefile-csi-driver/test/e2e/driver"

Expand Down Expand Up @@ -58,6 +59,9 @@ func (t *DynamicallyProvisionedVolumeSnapshotTest) Run(ctx context.Context, clie
tvsc, cleanup := CreateVolumeSnapshotClass(ctx, restclient, namespace, t.CSIDriver)
defer cleanup()

ginkgo.By("sleeping for 5 seconds to wait for data to be written to the volume")
time.Sleep(5 * time.Second)

ginkgo.By("taking snapshots")
snapshot := tvsc.CreateSnapshot(ctx, tpvc.persistentVolumeClaim)
defer tvsc.DeleteSnapshot(ctx, snapshot)
Expand Down

0 comments on commit 32d1241

Please sign in to comment.