Skip to content

Commit

Permalink
disable pre-resize check of fs size
Browse files Browse the repository at this point in the history
NodeStageVolume() which is called few lines above in
NodeStageExt4Volume() can now resize filesystem if it's needed so this
check is no longer valid.
  • Loading branch information
RomanBednar committed Oct 24, 2022
1 parent 80c800d commit 41b3dfd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/e2e/tests/resize_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,12 @@ var _ = Describe("GCE PD CSI Driver", func() {
}
}()

// Verify pre-resize fs size
sizeGb, err := testutils.GetFSSizeInGb(instance, publishDir)
Expect(err).To(BeNil(), "Failed to get FSSize in GB")
Expect(sizeGb).To(Equal(defaultSizeGb))

// Resize node
_, err = client.NodeExpandVolume(volID, publishDir, newSizeGb)
Expect(err).To(BeNil(), "Node expand volume failed")

// Verify disk size
sizeGb, err = testutils.GetFSSizeInGb(instance, publishDir)
sizeGb, err := testutils.GetFSSizeInGb(instance, publishDir)
Expect(err).To(BeNil(), "Failed to get FSSize in GB")
Expect(sizeGb).To(Equal(newSizeGb))

Expand Down

0 comments on commit 41b3dfd

Please sign in to comment.