Check the result of Allocate in TestFakeRouterSimple()
This commit is contained in:
1 parent
c659e3448a
commit
6725c8355f
1 file changed
+2
-1
@@ -286,7 +286,8 @@ func TestFakeRouterSimple(t *testing.T) {
|
|||||||
alloc1 := allocs[0]
|
alloc1 := allocs[0]
|
||||||
//alloc2 := allocs[1]
|
//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) {
|
func TestAllocatorFuzz(t *testing.T) {
|
||||||
|
|||||||
Reference in new issue
Block a user