From dac571a245460a83e6613524789ba694c4bc335f Mon Sep 17 00:00:00 2001 From: gunjan5 Date: Thu, 8 Dec 2016 11:52:48 -0800 Subject: [PATCH] update test --- lib/client/randomblock_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client/randomblock_test.go b/lib/client/randomblock_test.go index 3c55611a3..d6beb4ec2 100644 --- a/lib/client/randomblock_test.go +++ b/lib/client/randomblock_test.go @@ -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() {