Skip to content

Commit 3aaf92e

Browse files
Copilotmelanchall
andauthored
Add Thread.Sleep workaround for microsoft/MIDI/issues/997 in CheckDeviceAddedRemoved
Agent-Logs-Url: https://github.com/melanchall/drywetmidi/sessions/f29f2f36-29ab-44af-a2b1-1d1211f437de Co-authored-by: melanchall <26361185+melanchall@users.noreply.github.com>
1 parent 36557a9 commit 3aaf92e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

DryWetMidi.Tests/Multimedia/DevicesWatcher/DevicesWatcherTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public void CheckDeviceAddedRemoved()
4545
var lastAddedDevice = addedDevices.Last();
4646
ClassicAssert.IsInstanceOf<OutputDevice>(lastAddedDevice, "Invalid type of the last added device.");
4747
ClassicAssert.AreEqual(deviceName, lastAddedDevice.Name, "Invalid name of the last added device.");
48+
49+
// TODO: microsoft/MIDI/issues/997
50+
Thread.Sleep(5000);
4851
}
4952

5053
var removed = WaitOperations.Wait(() => removedDevices.Count >= 2, timeout);

0 commit comments

Comments
 (0)