Skip to content

Commit

Permalink
disable pre-resize check of fs size
Browse files Browse the repository at this point in the history
NodeStageVolume() can now resize filesystem if it's needed so this
check no longer makes sense.
  • Loading branch information
RomanBednar committed Sep 30, 2022
1 parent a801afe commit b925ef8
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 b925ef8

Please sign in to comment.