зеркало из https://github.com/microsoft/cppwinrt.git
Harden `disconnected.cpp` test (#1226)
This commit is contained in:
Родитель
526d72ad6f
Коммит
b79565c8fc
|
@ -105,6 +105,8 @@ TEST_CASE("disconnected,handler,3")
|
|||
});
|
||||
|
||||
WaitForSingleObject(signal.get(), INFINITE);
|
||||
// Give some time for to_hresult() to complete.
|
||||
Sleep(500);
|
||||
}
|
||||
|
||||
TEST_CASE("disconnected,handler,4")
|
||||
|
@ -134,6 +136,8 @@ TEST_CASE("disconnected,handler,5")
|
|||
});
|
||||
|
||||
WaitForSingleObject(signal.get(), INFINITE);
|
||||
// Give some time for to_hresult() to complete.
|
||||
Sleep(500);
|
||||
}
|
||||
|
||||
// Custom action to simulate an out-of-process server that crashes before it can complete.
|
||||
|
|
|
@ -94,6 +94,8 @@ TEST_CASE("disconnected,3")
|
|||
});
|
||||
|
||||
WaitForSingleObject(signal.get(), INFINITE);
|
||||
// Give some time for to_hresult() to complete.
|
||||
Sleep(500);
|
||||
}
|
||||
|
||||
TEST_CASE("disconnected,4")
|
||||
|
@ -123,4 +125,6 @@ TEST_CASE("disconnected,5")
|
|||
});
|
||||
|
||||
WaitForSingleObject(signal.get(), INFINITE);
|
||||
// Give some time for to_hresult() to complete.
|
||||
Sleep(500);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче