Skip to content

Commit 54b566d

Browse files
committed
testing
1 parent dc01add commit 54b566d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

deep_ort_backend_plugin/test/test_ort_backend.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,9 @@ TEST_CASE("OrtBackendExecutor basic functionality", "[executor]")
109109
REQUIRE(formats[0] == "onnx");
110110
}
111111

112-
SECTION("Load nonexistent model fails")
112+
SECTION("Load nonexistent model throws")
113113
{
114-
bool result = executor.load_model("/nonexistent/model.onnx");
115-
REQUIRE_FALSE(result);
114+
REQUIRE_THROWS_AS(executor.load_model("/nonexistent/model.onnx"), std::runtime_error);
116115
}
117116

118117
SECTION("Inference without model throws")

0 commit comments

Comments
 (0)