Skip to content

Commit

Permalink
fixing erroneous rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-young committed Aug 28, 2024
1 parent 218e9ed commit 05f3e4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/step_defs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,8 @@ func (f *feature) iCallListVolumesWith(maxEntriesString, startingToken string) e
return fmt.Errorf(`want start token of "next", "none", "invalid", "larger", got %q`, st)
}

// ignoring integer overflow issue, will not be an issue if maxEntries is less than 2147483647
// #nosec G115
req = f.getControllerListVolumesRequest(int32(maxEntries), startingToken)

f.listVolumesRequest = req
Expand Down Expand Up @@ -3670,6 +3672,8 @@ func (f *feature) iCallListSnapshotsWithMaxentriesAndStartingtoken(maxEntriesStr
}
ctx := new(context.Context)

// ignoring integer overflow issue, will not be an issue if maxEntries is less than 2147483647
// #nosec G115
req := &csi.ListSnapshotsRequest{MaxEntries: int32(maxEntries), StartingToken: startingTokenString}

f.listSnapshotsRequest = req
Expand Down

0 comments on commit 05f3e4c

Please sign in to comment.