Przeglądaj źródła

Merge pull request #2189 from abhi/master

Fixing the unit test for overlapping subnet
Flavio Crisciani 7 lat temu
rodzic
commit
803f882770
1 zmienionych plików z 2 dodań i 9 usunięć
  1. 2 9
      libnetwork/ipam/allocator_test.go

+ 2 - 9
libnetwork/ipam/allocator_test.go

@@ -296,15 +296,8 @@ func TestDoublePoolRelease(t *testing.T) {
 
 
 			// Re-request the same pool
 			// Re-request the same pool
 			for i := 0; i < repeats; i++ {
 			for i := 0; i < repeats; i++ {
-				pidN, _, _, err := a.RequestPool(localAddressSpace, "10.0.0.0/8", "", nil, false)
-				assert.NoError(t, err)
-				assert.Equal(t, pid0, pidN)
-			}
-
-			// Release the repeats
-			for i := 0; i < repeats; i++ {
-				err = a.ReleasePool(pid0)
-				assert.NoError(t, err)
+				_, _, _, err := a.RequestPool(localAddressSpace, "10.0.0.0/8", "", nil, false)
+				assert.Error(t, err)
 			}
 			}
 
 
 			// Release the initial request
 			// Release the initial request