fix: IPv4 CIDRPool tests expect wrong gatewayIndex for /31 - #201
Conversation
Greptile SummaryThe PR completes the IPv4
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the implementation now uses index 1 for the generated odd-address IPv4 Important Files Changed
Reviews (2): Last reviewed commit: "fix: IPv4 CIDRPool tests expect wrong ga..." | Re-trigger Greptile |
Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
23b915f to
f931010
Compare
|
@greptile-apps Thanks for the review. I updated the IPv4 |
|
Looks good. The fix is consistent — all four assertion sites now expect |
This PR addresses the following issue in
pkg/networkoperatorplugin/spectrumx/addressing_test.go: IPv4 CIDRPool tests expect wrong gatewayIndex for /31.Changes
pkg/networkoperatorplugin/spectrumx/addressing_test.go: IPv4 CIDRPool tests expect wrong gatewayIndex for /31.Details
Tests
pkg/networkoperatorplugin/spectrumx/addressing_test.goContributor guidelines
Per this repo's CONTRIBUTING.md:
Signed-off-bytrailer, DCO).Update (post-Greptile review): The IPv4
poolSettingsimplementation has been updated to returnGatewayIndex: 1so it agrees with the corrected test assertions. The Spectrum-X addressing test suite now passes (go test ./pkg/networkoperatorplugin/spectrumx/...). Commit:f9310104ae35ca8067ee669825a87e257bd03c70.