Skip to content

Flaky Unit Tests #489

@fgrosse

Description

@fgrosse

Describe the bug

When running unit tests on the current main branch (b636b16) they will randomly fail from time to time.

To Reproduce

❯ git checkout main
❯ git rev-parse HEAD
b636b1633b2c167ff4e2209ae1953a1c0843c303

❯ go test -count=10 -timeout=10s ./mcp
panic: test timed out after 10s
	running tests:
		TestClientReplay (2s)
		TestClientReplay/default (2s)
...

Expected behavior

Unit tests should be deterministic and fail or succeed in a predictable and repeatable manner

Logs

N/A

Additional context

This is a follow-up from #480 (comment) where CI pipelines failed and I looked into unit tests on the main branch to know where the issue is coming from.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions