Skip to content

Add timeout to prevent infinite wait in TestMIDDriver test #292

@coderabbitai

Description

@coderabbitai

Problem

The getTempo test in TestMIDDriver.cpp contains a busy-wait loop that could potentially hang indefinitely on flaky platforms:

while (!md.isTempoChanged()) {
    utils::delayMillis(10);
}

This can cause CI builds to hang under certain conditions, especially when running with -Werror flags.

Context

Expected Solution

Add a timeout mechanism (e.g., 2 seconds) to the wait loop with proper test failure handling to ensure tests complete reliably.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions