mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix test
This commit is contained in:
parent
af37b374cb
commit
9cc73f4a9a
|
@ -47,8 +47,8 @@ func TestHandlingVolumeServerHeartbeat(t *testing.T) {
|
||||||
|
|
||||||
topo.SyncDataNodeRegistration(volumeMessages, dn)
|
topo.SyncDataNodeRegistration(volumeMessages, dn)
|
||||||
|
|
||||||
assert(t, "activeVolumeCount1", topo.activeVolumeCount, volumeCount)
|
assert(t, "activeVolumeCount1", int(topo.activeVolumeCount), volumeCount)
|
||||||
assert(t, "volumeCount", topo.volumeCount, volumeCount)
|
assert(t, "volumeCount", int(topo.volumeCount), volumeCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -71,13 +71,13 @@ func TestHandlingVolumeServerHeartbeat(t *testing.T) {
|
||||||
}
|
}
|
||||||
topo.SyncDataNodeRegistration(volumeMessages, dn)
|
topo.SyncDataNodeRegistration(volumeMessages, dn)
|
||||||
|
|
||||||
assert(t, "activeVolumeCount1", topo.activeVolumeCount, volumeCount)
|
assert(t, "activeVolumeCount1", int(topo.activeVolumeCount), volumeCount)
|
||||||
assert(t, "volumeCount", topo.volumeCount, volumeCount)
|
assert(t, "volumeCount", int(topo.volumeCount), volumeCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
topo.UnRegisterDataNode(dn)
|
topo.UnRegisterDataNode(dn)
|
||||||
|
|
||||||
assert(t, "activeVolumeCount2", topo.activeVolumeCount, 0)
|
assert(t, "activeVolumeCount2", int(topo.activeVolumeCount), 0)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue