diff options
Diffstat (limited to 'go/topology/topo_test.go')
| -rw-r--r-- | go/topology/topo_test.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/go/topology/topo_test.go b/go/topology/topo_test.go index c0edca7c1..f3ae2096b 100644 --- a/go/topology/topo_test.go +++ b/go/topology/topo_test.go @@ -5,9 +5,7 @@ import ( "code.google.com/p/weed-fs/go/storage" "encoding/json" "fmt" - "math/rand" "testing" - "time" ) var topologyLayout = ` @@ -124,15 +122,3 @@ func TestRemoveDataCenter(t *testing.T) { t.Fail() } } - -func TestReserveOneVolume(t *testing.T) { - topo := setup(topologyLayout) - rand.Seed(time.Now().UnixNano()) - rand.Seed(1) - ret, node, vid := topo.RandomlyReserveOneVolume("dc1") - if node.Parent().Parent().Id() != NodeId("dc1") { - t.Fail() - } - fmt.Println("assigned :", ret, ", node :", node, ", volume id:", vid) - -} |
