Skip to content

Commit 41b3dfd

Browse files
committed
disable pre-resize check of fs size
NodeStageVolume() which is called few lines above in NodeStageExt4Volume() can now resize filesystem if it's needed so this check is no longer valid.
1 parent 80c800d commit 41b3dfd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/e2e/tests/resize_e2e_test.go

+1-6
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)