C5: the integration row reads the dropped step as dropped (ADR 0664 §4, issue 1748 review 1)
Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
@@ -144,7 +144,7 @@ func TestPullRedeliversAKilledPullersAsk(t *testing.T) {
|
|||||||
|
|
||||||
// ADR 0664 §1, §5 (issue 1748) on the real server: a run that ends on a transport fault is written again and the bus gives the
|
// ADR 0664 §1, §5 (issue 1748) on the real server: a run that ends on a transport fault is written again and the bus gives the
|
||||||
// ask again after the delay, not before, as the second run (its delivery count one higher), and that run's end is the ask's;
|
// ask again after the delay, not before, as the second run (its delivery count one higher), and that run's end is the ask's;
|
||||||
// a step that runs when its ask is dropped ends refused, naming who dropped it, and the ask is not given again.
|
// a step that runs when its ask is dropped ends dropped, naming who dropped it, and the ask is not given again.
|
||||||
func TestAnAskThatMetTheNetworkIsGivenAgainAndADroppedOneIsEnded(t *testing.T) {
|
func TestAnAskThatMetTheNetworkIsGivenAgainAndADroppedOneIsEnded(t *testing.T) {
|
||||||
js := askBus(t, 30*time.Second)
|
js := askBus(t, 30*time.Second)
|
||||||
a, doomed := testAsk(sdkstep.AskDelivery), testAsk(sdkstep.AskDelivery)
|
a, doomed := testAsk(sdkstep.AskDelivery), testAsk(sdkstep.AskDelivery)
|
||||||
@@ -189,7 +189,7 @@ func TestAnAskThatMetTheNetworkIsGivenAgainAndADroppedOneIsEnded(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
dkey, _ := sdkstep.AskStepKey("ace", doomed.ID)
|
dkey, _ := sdkstep.AskStepKey("ace", doomed.ID)
|
||||||
waitFor(t, "the dropped step refused", func() bool { s, ok := st.get(dkey); return ok && s.State == sdkstep.StepRefused })
|
waitFor(t, "the dropped step dropped", func() bool { s, ok := st.get(dkey); return ok && s.State == sdkstep.StepDropped })
|
||||||
if s, _ := st.get(dkey); !contains(s.Reason, "dropped by mesh-delivery-builder: superseded") {
|
if s, _ := st.get(dkey); !contains(s.Reason, "dropped by mesh-delivery-builder: superseded") {
|
||||||
t.Errorf("the dropped step says %q", s.Reason)
|
t.Errorf("the dropped step says %q", s.Reason)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user