18 lines
839 B
Go
18 lines
839 B
Go
//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)
|
|
}
|
|
}
|