Git designed for AI agents.
test(voter): a non-binding shadow budget for the recording tests
Federico Eliacc2c65e6bb97
diff --git a/internal/graft/corestore/voter/voter_test.go b/internal/graft/corestore/voter/voter_test.goindex e9bc88f..b2f8b41 100644--- a/internal/graft/corestore/voter/voter_test.go+++ b/internal/graft/corestore/voter/voter_test.go@@ -104,7 +104,12 @@ func newFixture(t *testing.T, opts fixtureOptions) *fixture {if opts.files {useFilesBackend(t, cfg, repoPath)}- core := coretest.Open(t, coretest.Options{Mode: opts.mode, Dialect: opts.dialect})+ // The shadow budget is not binding here: these tests check what a shadow+ // write records, which the budget can legitimately prevent under load+ // (doc/graft/PLAN7.md, SHADOW BUDGET requirement). The budget itself is+ // tested with short budgets set explicitly (TestShadowBudgetOverrunInPrepared,+ // TestPreparingShadowTimeoutCoversBothPhases, TestShadowTimeoutNeverFails).+ core := coretest.Open(t, coretest.Options{Mode: opts.mode, Dialect: opts.dialect, ShadowTimeout: time.Minute})var repoID int64var base uint64