Complete autonomous recovery controls
This commit is contained in:
@@ -51,6 +51,18 @@ func TestWorkerRefusesCorruptDurableState(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestClassifyLaunchErrorPreservesUncertainLivePane(t *testing.T) {
|
||||
if got := classifyLaunchError(errors.New("prompt response lost"), true); got != "launch_uncertain" {
|
||||
t.Fatalf("live pane class=%q", got)
|
||||
}
|
||||
if got := classifyLaunchError(errors.New("pickup anchor mismatch"), false); got != "invalid_handoff" {
|
||||
t.Fatalf("bad handoff class=%q", got)
|
||||
}
|
||||
if got := classifyLaunchError(errors.New("temporary herdr outage"), false); got != "launch_transient" {
|
||||
t.Fatalf("transient class=%q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInitialReplayDoesNotResurrectReleasedLease(t *testing.T) {
|
||||
s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.URL.Path {
|
||||
|
||||
Reference in New Issue
Block a user