aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/topology_test.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-04 19:34:15 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-04 19:34:15 -0700
commit9cc73f4a9a953665c0ffa3cb85755381d98956e0 (patch)
treeb8c465d29e8ea27a65ea57401d0535edfb9854ad /weed/topology/topology_test.go
parentaf37b374cbe915f033058abad98d648ccce70d5c (diff)
downloadseaweedfs-9cc73f4a9a953665c0ffa3cb85755381d98956e0.tar.xz
seaweedfs-9cc73f4a9a953665c0ffa3cb85755381d98956e0.zip
fix test
Diffstat (limited to 'weed/topology/topology_test.go')
-rw-r--r--weed/topology/topology_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/topology/topology_test.go b/weed/topology/topology_test.go
index 07dc9c67b..a8bdec902 100644
--- a/weed/topology/topology_test.go
+++ b/weed/topology/topology_test.go
@@ -47,8 +47,8 @@ func TestHandlingVolumeServerHeartbeat(t *testing.T) {
topo.SyncDataNodeRegistration(volumeMessages, dn)
- assert(t, "activeVolumeCount1", topo.activeVolumeCount, volumeCount)
- assert(t, "volumeCount", topo.volumeCount, volumeCount)
+ assert(t, "activeVolumeCount1", int(topo.activeVolumeCount), volumeCount)
+ assert(t, "volumeCount", int(topo.volumeCount), volumeCount)
}
{
@@ -71,13 +71,13 @@ func TestHandlingVolumeServerHeartbeat(t *testing.T) {
}
topo.SyncDataNodeRegistration(volumeMessages, dn)
- assert(t, "activeVolumeCount1", topo.activeVolumeCount, volumeCount)
- assert(t, "volumeCount", topo.volumeCount, volumeCount)
+ assert(t, "activeVolumeCount1", int(topo.activeVolumeCount), volumeCount)
+ assert(t, "volumeCount", int(topo.volumeCount), volumeCount)
}
topo.UnRegisterDataNode(dn)
- assert(t, "activeVolumeCount2", topo.activeVolumeCount, 0)
+ assert(t, "activeVolumeCount2", int(topo.activeVolumeCount), 0)
}