refactor: use nginx -s reload instead of systemd
- doc: add comment
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user