Adjust test. valid input names aren't deterministically ordered in error message.

This commit is contained in:
Scott McKay 2018-11-29 15:04:53 +10:00
parent ea1ad0aaf5
commit d263d6734e

View file

@ -926,7 +926,6 @@ TEST(InferenceSessionTests, TestOptionalInputs) {
status = RunOptionalInputTest(true, true, true);
ASSERT_FALSE(status.IsOK());
EXPECT_THAT(status.ErrorMessage(), testing::HasSubstr("Invalid Feed Input Names: unknown_input"));
EXPECT_THAT(status.ErrorMessage(), testing::HasSubstr("Valid input names are: required_input optional_input"));
// missing required
status = RunOptionalInputTest(false, true, false);