Skip to content

Commit a546951

Browse files
authored
Fix for test hanging when no ProductID/VendorID is present (#33546)
1 parent 10f7aa9 commit a546951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto/tests/TestChipCryptoPAL.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2804,8 +2804,8 @@ TEST_F(TestChipCryptoPAL, TestVIDPID_x509Extraction)
28042804
AttestationCertVidPid vidpid;
28052805
CHIP_ERROR result = ExtractVIDPIDFromX509Cert(testCase.cert, vidpid);
28062806
EXPECT_EQ(result, testCase.expectedResult);
2807-
EXPECT_EQ(vidpid.mVendorId.HasValue(), testCase.expectedVidPresent);
2808-
EXPECT_EQ(vidpid.mProductId.HasValue(), testCase.expectedPidPresent);
2807+
ASSERT_EQ(vidpid.mVendorId.HasValue(), testCase.expectedVidPresent);
2808+
ASSERT_EQ(vidpid.mProductId.HasValue(), testCase.expectedPidPresent);
28092809

28102810
// If present, make sure the VID matches expectation.
28112811
if (testCase.expectedVidPresent)

0 commit comments

Comments
 (0)