mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-21 05:24:28 +02:00
server: give heartbeat-options test a topology (#11853)
heartbeatResponse now reads MaxVolumeId and TopologyId off ms.Topo, but the test built a MasterServer without one and panicked, failing the package for every PR. Generated with [Devin](https://devin.ai) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
6b6a268903
commit
2095c905ba
1 file changed
+5
-1
@@ -132,7 +132,11 @@ func TestDigestCheckAsksForTheListWhenTheLookupIndexDrifts(t *testing.T) {
|
||||
// preallocate is a bare bool with no way to tell "off" from "not mentioned". A
|
||||
// response that left it out would turn preallocation off until reconnect.
|
||||
func TestHeartbeatResponsesCarryTheVolumeOptions(t *testing.T) {
|
||||
ms := &MasterServer{option: &MasterOption{VolumeSizeLimitMB: 1024}, preallocateSize: 1}
|
||||
ms := &MasterServer{
|
||||
option: &MasterOption{VolumeSizeLimitMB: 1024},
|
||||
preallocateSize: 1,
|
||||
Topo: topology.NewTopology("test", sequence.NewMemorySequencer(), 32*1024, 5, false),
|
||||
}
|
||||
|
||||
resend := ms.heartbeatResponse()
|
||||
resend.ResendFullVolumeList = true
|
||||
|
||||
Reference in new issue
Block a user