test(library): 隔离数据契约与 r11 身份自然键矩阵
真实本机 PG/ES/MinIO:v071 目录镜像 10 模式、结构引用/游标 15 模式、 8 表×2 外部范围身份矩阵、13 模式自然键(含软删除与合法同 parent 正例)、 备份期间三注入、收尾故障与授权撤销两个真实治理 PG 用例。 需隔离服务的用例在 test-scope.json 显式声明:普通 CI 跳过不算通过。
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//go:build !kg_isolated_drill
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestProductionAttemptTimingIgnoresDrillEnvironment(t *testing.T) {
|
||||
t.Setenv("KG_LIBRARY_TEST_ISOLATED", "1")
|
||||
t.Setenv("WORKER_LEASE_DURATION", "1ms")
|
||||
if libraryAttemptLease != 10*time.Minute {
|
||||
t.Fatal("production lease shortened by drill injection")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user