agent/pkg/agentic/shutdown_test.go
Snider ecd47fe3db revert fcb9c189e5
revert fix(agentic): harden TODO workspace write

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-18 11:22:27 +00:00

29 lines
539 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestShutdown_Shutdown_Good(t *testing.T) {
s := newPrepWithProcess()
err := s.Shutdown(nil)
assert.NoError(t, err)
}
func TestShutdown_Shutdown_Bad_AlreadyFrozen(t *testing.T) {
s := newPrepWithProcess()
s.frozen = true
err := s.Shutdown(nil)
assert.NoError(t, err)
}
func TestShutdown_Shutdown_Ugly_NilRuntime(t *testing.T) {
s := &PrepSubsystem{}
assert.NotPanics(t, func() {
_ = s.Shutdown(nil)
})
}