X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/2ad578a24f252706976cddb41bee6cc969f251cd..c781f79f3c8cb9a7577ee1574d196988da2719b3:/daemon_agent_test.go?ds=inline diff --git a/daemon_agent_test.go b/daemon_agent_test.go index 3fceb34..5ee342a 100644 --- a/daemon_agent_test.go +++ b/daemon_agent_test.go @@ -26,6 +26,7 @@ func TestDaemonOpensAndRunsTheRootAndTwoChildren(t *testing.T) { t.Cleanup(func() { require.NoError(t, agents.Close()) }) + require.Len(t, agents, 3) require.Equal(t, []string{"Garden", "Library"}, agents.ChildNames()) @@ -253,6 +254,7 @@ func TestInvalidChildRelationshipsStopStartup(t *testing.T) { cause: "must have its own name and ID", }, } + for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { dir := t.TempDir()