Skip to content

Commit cf3a3c1

Browse files
test(windows): close Switch adapter before callback teardown
1 parent d0bfc48 commit cf3a3c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/unit/test_windows_consumers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ TEST_F(WindowsConsumerTest, NativeSwitchHandshakeAndInputReportReachHidClient) {
638638
EXPECT_EQ(input->at(9), 0x00U);
639639
EXPECT_EQ(input->at(10), 0x08U);
640640
EXPECT_EQ(input->at(11), 0x00U);
641+
ASSERT_TRUE(created.adapter->close().ok());
641642
}
642643

643644
TEST_F(WindowsConsumerTest, NativeXboxPidRumbleWritesAreNormalized) {

0 commit comments

Comments
 (0)