Skip to content

Commit 0cc341d

Browse files
committed
disable pre-resize check of fs size
NodeStageVolume() can now resize filesystem if it's needed so this check no longer makes sense.
1 parent 4c68a70 commit 0cc341d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/e2e/tests/resize_e2e_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,12 @@ var _ = Describe("GCE PD CSI Driver", func() {
232232
}
233233
}()
234234

235-
// Verify pre-resize fs size
236-
sizeGb, err := testutils.GetFSSizeInGb(instance, publishDir)
237-
Expect(err).To(BeNil(), "Failed to get FSSize in GB")
238-
Expect(sizeGb).To(Equal(defaultSizeGb))
239-
240235
// Resize node
241236
_, err = client.NodeExpandVolume(volID, publishDir, newSizeGb)
242237
Expect(err).To(BeNil(), "Node expand volume failed")
243238

244239
// Verify disk size
245-
sizeGb, err = testutils.GetFSSizeInGb(instance, publishDir)
240+
sizeGb, err := testutils.GetFSSizeInGb(instance, publishDir)
246241
Expect(err).To(BeNil(), "Failed to get FSSize in GB")
247242
Expect(sizeGb).To(Equal(newSizeGb))
248243

0 commit comments

Comments
 (0)