Skip to content

Commit 935b380

Browse files
refactor code
1 parent bf37d5d commit 935b380

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Testing/WinMLRunnerTest/WinMLRunnerTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,7 @@ namespace WinMLRunnerTest
865865
TEST_METHOD(LoadModelFailModelNotFound)
866866
{
867867
const std::wstring command = BuildCommand({ EXE_PATH, L"-model", L"invalid_model_name" });
868-
auto temp = RunProc((wchar_t *)command.c_str());
869-
Assert::AreEqual(HRESULT_FROM_WIN32(E_FAIL), temp);
868+
Assert::AreEqual(HRESULT_FROM_WIN32(E_FAIL), RunProc((wchar_t *)command.c_str()));
870869
}
871870

872871
TEST_METHOD(TestPrintUsage)

0 commit comments

Comments
 (0)