iop/apps/edge/internal/controlplane/heartbeat_test.go
toki 11382a397f feat: control-plane edge wire baseline 및 관련 수정사항 적용
- edge bootstrap runtime 개선
- edge 설정 및 config 업데이트
- hostsetup 테스트 및 템플릿 수정
- Makefile 업데이트
- E2E 테스트 스크립트 추가
- 아키텍처 태스크 아카이브
2026-05-30 21:00:59 +09:00

15 lines
484 B
Go

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)
}
}