Skip to content

Commit 631d60a

Browse files
committed
mmaprototype: allow multiple store load msgs per input
1 parent ab5107e commit 631d60a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/kv/kvserver/allocator/mmaprototype/cluster_state_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,10 @@ func TestClusterState(t *testing.T) {
436436
// be in the past, indicating gossip delay. However, having it be
437437
// some arbitrary value can be confusing for the test reader.
438438
// Consider making it relative to ts.
439-
msg := parseStoreLoadMsg(t, d.Input)
440-
cs.processStoreLoadMsg(context.Background(), &msg)
439+
for line := range strings.Lines(d.Input) {
440+
msg := parseStoreLoadMsg(t, line)
441+
cs.processStoreLoadMsg(context.Background(), &msg)
442+
}
441443
return ""
442444

443445
case "store-leaseholder-msg":

0 commit comments

Comments
 (0)