Skip to content

Commit a394c30

Browse files
make last ocete in ip address 0
1 parent 15b568b commit a394c30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sumologic/resource_sumologic_cse_network_block_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ func testCheckNetworkBlockValues(networkBlock *CSENetworkBlock, nAddressBlock st
117117

118118
func generateRandomCIDRBlock() string {
119119
ip := make(net.IP, 4)
120-
for i := 0; i < 4; i++ {
120+
for i := 0; i < 3; i++ {
121121
ip[i] = byte(rand.Intn(256))
122122
}
123+
ip[3] = 0
123124

124125
return ip.String() + "/26"
125126
}

0 commit comments

Comments
 (0)