//go:build !integration package main import "testing" // TestRunningBatchGapIsMinBatchGap (1520/AC1, ADR 0459 ยง15, issue 1520 โ€” fixed per the lead's try feedback // on bb594652): the gap the running binary actually paces its batches by (BatchGap, the var RunBatches // reads) is MinBatchGap, exactly, in any build this test is itself part of. This file's own `!integration` // tag keeps it out of a `-tags integration` build entirely โ€” batch_gap_integration.go's init, which // shortens BatchGap for that build alone, is never even compiled alongside this assertion โ€” so no // production path is ever caught lowering the pace. func TestRunningBatchGapIsMinBatchGap(t *testing.T) { if BatchGap != MinBatchGap { t.Fatalf("BatchGap = %s, want MinBatchGap (%s): no production path may lower the pace", BatchGap, MinBatchGap) } }