Skip to content

flake: useAgentLogs #644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
spikecurtis opened this issue May 16, 2025 · 1 comment · Fixed by coder/coder#17919
Open

flake: useAgentLogs #644

spikecurtis opened this issue May 16, 2025 · 1 comment · Fixed by coder/coder#17919
Assignees
Labels

Comments

@spikecurtis
Copy link

 FAIL src/modules/resources/useAgentLogs.test.ts
  ● useAgentLogs › clear logs when disabled to avoid duplicates

    expect(received).toHaveLength(expected)

    Expected length: 3
    Received length: 6
    Received array:  [{"created_at": "2025-05-16T03:52:06.102Z", "id": 0, "level": "info", "output": "Log 0", "source_id": ""}, {"created_at": "2025-05-16T03:52:06.102Z", "id": 1, "level": "info", "output": "Log 1", "source_id": ""}, {"created_at": "2025-05-16T03:52:06.102Z", "id": 2, "level": "info", "output": "Log 2", "source_id": ""}, {"created_at": "2025-05-16T03:52:06.102Z", "id": 0, "level": "info", "output": "Log 0", "source_id": ""}, {"created_at": "2025-05-16T03:52:06.102Z", "id": 1, "level": "info", "output": "Log 1", "source_id": ""}, {"created_at": "2025-05-16T03:52:06.102Z", "id": 2, "level": "info", "output": "Log 2", "source_id": ""}]

      40 | 		await server.connected;
      41 | 		server.send(JSON.stringify(generateLogs(3)));
    > 42 | 		expect(result.current).toHaveLength(3);
         | 		                       ^
      43 | 	});
      44 | });
      45 |

      at Object.toHaveLength (src/modules/resources/useAgentLogs.test.ts:42:26)

seen here: https://github.com/coder/coder/actions/runs/15060230530/job/42333911889

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants