Skip to content

Commit

Permalink
Wait for app to stop
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Feb 2, 2021
1 parent 7d9df8d commit 9cf1287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/MSBuildDeviceIntegration/Tests/DeploymentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public void CheckTimeZoneInfoIsCorrect (string timeZone)
Assert.AreEqual (timeZone, deviceTz, $"The command to set the device timezone to {timeZone} failed. Current device timezone is {deviceTz}");
ClearAdbLogcat ();
RunAdbCommand ($"shell am force-stop {proj.PackageName}");
WaitFor(TimeSpan.FromSeconds (10));
WaitFor (TimeSpan.FromSeconds (10).TotalMilliseconds);
AdbStartActivity ($"{proj.PackageName}/{proj.JavaPackageName}.MainActivity");
Assert.IsTrue (WaitForActivityToStart (proj.PackageName, "MainActivity", logFile), "Activity should have started");
string line = "";
Expand Down

0 comments on commit 9cf1287

Please sign in to comment.