refactor: use nginx -s reload instead of systemd

- doc: add comment
This commit is contained in:
2026-08-17 10:10:14 +08:00
parent 79f18fcdea
commit f536987a7e
62 changed files with 2216 additions and 598 deletions
+5
View File
@@ -2,6 +2,11 @@ package transaction
import "testing"
// TestStateTransitions 验证状态机的正常推进、跳过前向状态、回滚与终态等转换规则。
//
// 覆盖场景:CREATED 到 COMMITTED 的逐级前向推进均被允许;跳过中间状态(CREATED
// 直接到 PREPARED)被拒绝;SWITCHING 允许进入回滚、ROLLING_BACK 允许到 ROLLED_BACK
// 终态 COMMITTED 不再接受任何后续转换。
func TestStateTransitions(t *testing.T) {
t.Parallel()
forward := []State{