Commit bedcc2a
committed
test(nas-backup): enable incremental in active-checkpoint test
After defaulting nas.backup.incremental.enabled to false (per the
PR-stated opt-in promise, addressed in earlier review-fix commit),
decideChainReturnsFullWhenVmHasNoActiveCheckpoint started failing
the Mockito strict-stubbing check — the new master-switch gate
short-circuits decideChain before vm.getState() and the
VM_ACTIVE_CHECKPOINT_ID lookup are reached, leaving three stubs
flagged as "unnecessary".
Mirror the same ReflectionTestUtils.setField pattern that
decideChainReturnsFullWhenIncrementalDisabled uses, but with
value="true" so we get past the master-switch gate and actually
exercise the active-checkpoint-id branch this test is meant to
cover.1 parent 4f3375a commit bedcc2a
1 file changed
Lines changed: 9 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
414 | 423 | | |
415 | 424 | | |
416 | 425 | | |
| |||
0 commit comments