From 3cb7454f67a6956e1744e795abfe417a18c337c1 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Thu, 20 Aug 2020 18:46:34 +0300 Subject: [PATCH] Fixed error message for ONNX importer tests (#1880) --- .../tests/unit/frontends/onnx_import/onnx_importer_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference-engine/tests/unit/frontends/onnx_import/onnx_importer_test.cpp b/inference-engine/tests/unit/frontends/onnx_import/onnx_importer_test.cpp index 6b16ac7..baf7b75 100644 --- a/inference-engine/tests/unit/frontends/onnx_import/onnx_importer_test.cpp +++ b/inference-engine/tests/unit/frontends/onnx_import/onnx_importer_test.cpp @@ -107,7 +107,7 @@ TEST(ONNX_Importer_Tests, ImportModelWhenFileDoesNotExist) { FAIL() << "Any expection was thrown despite the ONNX model file does not exist"; } catch(const ngraph::ngraph_error& error) { - EXPECT_PRED_FORMAT2(testing::IsSubstring, std::string("Failure opening file:"), error.what()); + EXPECT_PRED_FORMAT2(testing::IsSubstring, std::string("Error during import of ONNX model expected to be in file:"), error.what()); } catch(...) { FAIL() << "Expected 'ngraph::ngraph_error' exception was not thrown despite the ONNX model file does not exist"; -- 2.7.4