MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / issuePending

Function issuePending

internal/agent/hitl_magic_api_test.go:77–87  ·  view source on GitHub ↗

issuePending creates a pending_approval outbound message on the agent.

(t *testing.T, store *identity.Store, agentID string)

Source from the content-addressed store, hash-verified

75
76// issuePending creates a pending_approval outbound message on the agent.
77func issuePending(t *testing.T, store *identity.Store, agentID string) *identity.Message {
78 t.Helper()
79 msg, err := store.CreatePendingOutboundMessage(context.Background(), agentID,
80 []string{"alice@example.com"}, nil, nil,
81 "Held", "plain body", "<p>html</p>", nil,
82 "send", "", "", 3600)
83 if err != nil {
84 t.Fatal(err)
85 }
86 return msg
87}
88
89func readBody(t *testing.T, resp *http.Response) string {
90 t.Helper()

Calls 1

Tested by

no test coverage detected