(ctx context.Context, t *testing.T, db database.Store, agentID uuid.UUID, msg string)
| 700 | } |
| 701 | |
| 702 | func assertWorkspaceAgentLogs(ctx context.Context, t *testing.T, db database.Store, agentID uuid.UUID, msg string) { |
| 703 | t.Helper() |
| 704 | agentLogs, err := db.GetWorkspaceAgentLogsAfter(ctx, database.GetWorkspaceAgentLogsAfterParams{ |
| 705 | AgentID: agentID, |
| 706 | CreatedAfter: 0, |
| 707 | }) |
| 708 | require.NoError(t, err) |
| 709 | assert.NotEmpty(t, agentLogs) |
| 710 | for _, al := range agentLogs { |
| 711 | assert.Equal(t, msg, al.Output) |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | func mustCreateWorkspaceBuild(t *testing.T, db database.Store, org database.Organization, tv database.TemplateVersion, wsID uuid.UUID, createdAt time.Time, n int32) database.WorkspaceBuild { |
| 716 | t.Helper() |
no test coverage detected