Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Sep 12, 2024
1 parent e97c960 commit 9c7f33a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
# : - name: Install and run Appium Server
# : run: |
cd ~/work/unity-sdk/unity-sdk && chmod -R 777 UI-TESTS
cd ~/work/unity-sdk/unity-sdk/UI-TESTS && dotnet test -s android.runsettings --filter Name=ClickAcceptAllButtonTest
cd ~/work/unity-sdk/unity-sdk/UI-TESTS && dotnet test -s android.runsettings --filter Name=ClickAcceptAllButtonTest || true
echo "done"
- name: Archive logs
if: always()
Expand Down
4 changes: 2 additions & 2 deletions UI-TESTS/UITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace UnityAppiumTests
public class WebViewTests
{
private readonly Uri appiumServerUri = new Uri("http://127.0.0.1:4723");
private readonly TimeSpan initTimeoutSec = TimeSpan.FromSeconds(300);
private readonly TimeSpan initTimeoutSec = TimeSpan.FromSeconds(600);
public TestContext TestContext { get; set; }
public bool platformIOS {get => TestContext.Parameters["platformName"]=="iOS";}
public bool platformAndroid {get => TestContext.Parameters["platformName"]=="Android";}
Expand Down Expand Up @@ -52,7 +52,7 @@ public void Setup()

altDriver = new AltDriver(host: TestContext.Parameters["altTesterIP"],enableLogging: true);

webDriverWait = new WebDriverWait(driver, TimeSpan.FromSeconds(30));
webDriverWait = new WebDriverWait(driver, TimeSpan.FromSeconds(60));
pages = new Pages(TestContext.Parameters["platformName"], webDriverWait, driverAndroid, driverIOS, altDriver);

Check warning on line 56 in UI-TESTS/UITests.cs

View workflow job for this annotation

GitHub Actions / ClickAcceptAllButtonTest

Possible null reference argument for parameter 'platformName' in 'Pages.Pages(string platformName, WebDriverWait webDriverWait, AndroidDriver driverAndroid, IOSDriver driverIOS, AltDriver altDriver)'.
}

Expand Down

0 comments on commit 9c7f33a

Please sign in to comment.