7 "github.com/stretchr/testify/require"
10 // newTestSubagents returns the subagents of a new agent directory, with random
11 // names, and closes them at the end of the test.
12 func newTestSubagents(t *testing.T) *Subagents {
15 subagents := newSubagents(filepath.Join(t.TempDir(), subagentDirName), newTestClock().Now, subagentNameRandom)
17 require.NoError(t, subagents.Close())