Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjan5 committed Dec 8, 2016
1 parent 4571597 commit dac571a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client/randomblock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ func poolTest(cidr string) {
}
var pools []cnet.IPNet
pools = []cnet.IPNet{{*subnet}}
host := "testHost"

for _, pool := range pools {

ones, size := pool.Mask.Size()
prefixLen := size - ones
numIP := new(big.Int).Exp(big.NewInt(2), big.NewInt(int64(prefixLen)), nil)
blocks := randomBlockGenerator(pool)
blocks := randomBlockGenerator(pool, host)

blockCount := big.NewInt(0)
for blk := blocks(); blk != nil; blk = blocks() {
Expand Down

0 comments on commit dac571a

Please sign in to comment.