From 6725c8355f886e65518e0ef9c2073e05b6bb7ce0 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 25 Jun 2015 17:41:18 +0100 Subject: [PATCH] Check the result of Allocate in TestFakeRouterSimple() --- ipam/allocator_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipam/allocator_test.go b/ipam/allocator_test.go index 6cc9aae5..33bed602 100644 --- a/ipam/allocator_test.go +++ b/ipam/allocator_test.go @@ -286,7 +286,8 @@ func TestFakeRouterSimple(t *testing.T) { alloc1 := allocs[0] //alloc2 := allocs[1] - alloc1.Allocate("foo", subnet, nil) + _, err := alloc1.Allocate("foo", subnet, nil) + wt.AssertTrue(t, err == nil, "Failed to get address") } func TestAllocatorFuzz(t *testing.T) {