(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestServer_EmptyList(t *testing.T) { |
| 52 | t.Parallel() |
| 53 | |
| 54 | ctx := t.Context() |
| 55 | lnPath := startServer(t, ctx, prepareAgentsDir(t)) |
| 56 | |
| 57 | buf := httpGET(t, ctx, lnPath, "/api/agents") |
| 58 | assert.Equal(t, "[]\n", string(buf)) // We don't want null, but an empty array |
| 59 | } |
| 60 | |
| 61 | func TestServer_ListSessions(t *testing.T) { |
| 62 | t.Parallel() |
nothing calls this directly
no test coverage detected