chore(repo): 纳入云治理主站运行基线 #27
@@ -165,6 +165,8 @@ func TestDS01BindingConflictRejectedInEveryState(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// 从这里开始只允许确认,不允许任何新的 marker create。
|
||||
beforeDispatch := wire.dispatch
|
||||
conflict := func(state string) *ds01StubGate {
|
||||
return &ds01StubGate{inspectFound: true, inspectStatus: libraryrelease.RestoreDispatchStatus{
|
||||
State: state, Held: true, BindingConflict: true, Reason: "binding differs"},
|
||||
@@ -220,8 +222,8 @@ func TestDS01BindingConflictRejectedInEveryState(t *testing.T) {
|
||||
if okGate.confirmed != 1 {
|
||||
t.Fatalf("legitimate marker confirmation count = %d", okGate.confirmed)
|
||||
}
|
||||
if wire.dispatch != 0 {
|
||||
t.Fatalf("confirmation path forwarded %d marker writes", wire.dispatch)
|
||||
if wire.dispatch != beforeDispatch {
|
||||
t.Fatalf("confirmation path forwarded %d marker writes", wire.dispatch-beforeDispatch)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user