Check the result of Allocate in TestFakeRouterSimple()

This commit is contained in:
Bryan Boreham committed 2015-06-26 11:53:03 +01:00
1 parent c659e3448a
commit 6725c8355f
1 file changed
+2 -1
+2 -1
View File
@@ -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) {