Skip to content

Commit e2c95b2

Browse files
committed
fix CVEs and flaky test
1 parent 7eddb8d commit e2c95b2

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM --platform=$BUILDPLATFORM golang:1.22.2 as builder
15+
FROM --platform=$BUILDPLATFORM golang:1.22.4 as builder
1616

1717
ARG STAGINGVERSION
1818
ARG TARGETPLATFORM

test/e2e/tests/single_zone_e2e_test.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,14 @@ var _ = Describe("GCE PD CSI Driver", func() {
549549

550550
defer func() {
551551
// Delete Disk
552-
err := client.DeleteVolume(volID)
552+
err = wait.Poll(5*time.Second, 1*time.Minute, func() (bool, error) {
553+
err := client.DeleteVolume(volID)
554+
if err == nil {
555+
return true, err
556+
}
557+
return false, err
558+
})
559+
553560
Expect(err).To(BeNil(), "DeleteVolume failed")
554561

555562
// Validate Disk Deleted
@@ -1407,7 +1414,7 @@ var _ = Describe("GCE PD CSI Driver", func() {
14071414
p, z, _ := testContext.Instance.GetIdentity()
14081415
client := testContext.Client
14091416
instance := testContext.Instance
1410-
volName, volID := createAndValidateUniqueZonalDisk(client, p, z, standardDiskType)
1417+
volName, volID := createAndValidateUniqueZonalDisk(client, p, z, hdtDiskType)
14111418
defer deleteVolumeOrError(client, volID)
14121419

14131420
// Attach Disk
@@ -1441,7 +1448,7 @@ var _ = Describe("GCE PD CSI Driver", func() {
14411448
client := testContextForVm1.Client
14421449
firstInstance := testContextForVm1.Instance
14431450

1444-
volName, volID := createAndValidateUniqueZonalDisk(client, p, z, standardDiskType)
1451+
volName, volID := createAndValidateUniqueZonalDisk(client, p, z, hdtDiskType)
14451452
defer deleteVolumeOrError(client, volID)
14461453

14471454
testContextForVm2 := testZoneContexts[1]

0 commit comments

Comments
 (0)