Skip to content

Commit 33b7dd9

Browse files
committed
UT nit
1 parent 8f7d5b2 commit 33b7dd9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vms/platformvm/state/stakers_model_storage_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func (*deleteCurrentValidatorCommand) Run(sut commands.SystemUnderTest) commands
251251
validator.Priority == txs.SubnetPermissionlessValidatorCurrentPriority ||
252252
validator.Priority == txs.PrimaryNetworkValidatorCurrentPriority {
253253
found = true
254+
break
254255
}
255256
}
256257
if !found {
@@ -280,6 +281,7 @@ func (*deleteCurrentValidatorCommand) NextState(cmdState commands.State) command
280281
validator.Priority == txs.SubnetPermissionlessValidatorCurrentPriority ||
281282
validator.Priority == txs.PrimaryNetworkValidatorCurrentPriority {
282283
found = true
284+
break
283285
}
284286
}
285287
if !found {
@@ -352,6 +354,7 @@ func addCurrentDelegatorInSystem(sys *sysUnderTest, candidateDelegator *Staker)
352354
validator.Priority == txs.SubnetPermissionlessValidatorCurrentPriority ||
353355
validator.Priority == txs.PrimaryNetworkValidatorCurrentPriority {
354356
found = true
357+
break
355358
}
356359
}
357360
if !found {
@@ -400,6 +403,7 @@ func addCurrentDelegatorInModel(model *stakersStorageModel, candidateDelegator *
400403
validator.Priority == txs.SubnetPermissionlessValidatorCurrentPriority ||
401404
validator.Priority == txs.PrimaryNetworkValidatorCurrentPriority {
402405
found = true
406+
break
403407
}
404408
}
405409
if !found {
@@ -466,6 +470,7 @@ func (*deleteCurrentDelegatorCommand) Run(sut commands.SystemUnderTest) commands
466470
if delegator.Priority == txs.SubnetPermissionlessDelegatorCurrentPriority ||
467471
delegator.Priority == txs.PrimaryNetworkDelegatorCurrentPriority {
468472
found = true
473+
break
469474
}
470475
}
471476
if !found {
@@ -494,6 +499,7 @@ func (*deleteCurrentDelegatorCommand) NextState(cmdState commands.State) command
494499
if delegator.Priority == txs.SubnetPermissionlessDelegatorCurrentPriority ||
495500
delegator.Priority == txs.PrimaryNetworkDelegatorCurrentPriority {
496501
found = true
502+
break
497503
}
498504
}
499505
if !found {

0 commit comments

Comments
 (0)