- edge bootstrap runtime 개선 - edge 설정 및 config 업데이트 - hostsetup 테스트 및 템플릿 수정 - Makefile 업데이트 - E2E 테스트 스크립트 추가 - 아키텍처 태스크 아카이브
15 lines
484 B
Go
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)
|
|
}
|
|
}
|