Skip to content

Commit 203258e

Browse files
committed
Fix C++ test
1 parent 3950942 commit 203258e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/decoders/VideoDecoderTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ TEST_P(VideoDecoderTest, ReturnsFpsAndDurationForVideoInMetadata) {
9393
}
9494

9595
TEST(VideoDecoderTest, MissingVideoFileThrowsException) {
96-
EXPECT_THROW(
97-
VideoDecoder("/this/file/does/not/exist"), std::invalid_argument);
96+
EXPECT_THROW(VideoDecoder("/this/file/does/not/exist"), c10::Error);
9897
}
9998

10099
void dumpTensorToDisk(

0 commit comments

Comments
 (0)