Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
300 changes: 0 additions & 300 deletions cmd/ateapi/internal/controlapi/workflow_pause.go

This file was deleted.

5 changes: 5 additions & 0 deletions cmd/ateapi/internal/controlapi/workflow_pause_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package controlapi
import (
"context"
"fmt"
"strings"
"testing"

"github.com/agent-substrate/substrate/cmd/ateapi/internal/store/storetest"
Expand Down Expand Up @@ -408,6 +409,10 @@ func TestPauseActor_MarkedPausing_StateMatrix(t *testing.T) {
if got := apierror.Code(err); got != codes.FailedPrecondition {
t.Errorf("state %v: code = %v, want FailedPrecondition (err: %v)", seedState, got, err)
}
// Only a sync suspend accepts a paused actor, so a pause must not offer it.
if strings.Contains(err.Error(), "node-local snapshot") {
t.Errorf("state %v: err = %v, want no mention of a node-local snapshot", seedState, err)
}
if got := stored.GetStatus().GetState(); got != seedState {
t.Errorf("state %v: stored state = %v, want it untouched", seedState, got)
}
Expand Down
Loading
Loading