Increase GUI test timeout and add more diagnostics. (dotnet/core-setup#6168)
authorVitek Karas <vitek.karas@microsoft.com>
Mon, 29 Apr 2019 21:38:41 +0000 (14:38 -0700)
committerGitHub <noreply@github.com>
Mon, 29 Apr 2019 21:38:41 +0000 (14:38 -0700)
commit7659568be4abb9f381357b1de404c9f163b0270d
tree4714214bc415a425e25c7820aa5f767497c97bc9
parentb2ad762793b9f74cb65f02687f0fa6b8c09c68e3
Increase GUI test timeout and add more diagnostics. (dotnet/core-setup#6168)

* Increase GUI test timeout and add more diagnostics.

* Implement two timeout approach to detect hangs.

As suggested by @danmosemsft the waiting now succeeds if the window is detected in the specified timeout. If it is detected but it took longer than that (up to 3 * timeout), the test fails but notes that it did get the window. If it takes longer than 3 * timeout, the test just fails.

Commit migrated from https://github.com/dotnet/core-setup/commit/8cdebdfda7c8d22b5460fd2b9d7e30e372093d81
src/installer/test/HostActivationTests/StandaloneAppActivation.cs