package controlplane import ( "testing" ) // TestHeartbeatWaitExceedsInterval verifies the package-level invariant that // heartbeatWaitSec must be greater than heartbeatIntervalSec. This guards // against accidental regression when adjusting the constants. func TestHeartbeatWaitExceedsInterval(t *testing.T) { if heartbeatWaitSec <= heartbeatIntervalSec { t.Errorf("heartbeatWaitSec (%d) must exceed heartbeatIntervalSec (%d)", heartbeatWaitSec, heartbeatIntervalSec) } }