Skip to content

Commit

Permalink
test: call timeout for register off chain
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Nov 11, 2024
1 parent 6a5a57e commit ee5052f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions sample/Assets/Scripts/AuthenticatedScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ public async void RegisterOffchain()

try
{
Passport.SetCallTimeout(120000);

RegisterUserResponse response = await Passport.RegisterOffchain();

if (response != null)
Expand All @@ -280,10 +282,12 @@ public async void RegisterOffchain()
{
ShowOutput($"Unable to register off-chain: {e.Message} ({e.Type})");
}
catch (Exception)
catch (Exception e)
{
ShowOutput("Unable to register off-chain");
ShowOutput($"Unable to register off-chain {e.Message}");
}

Passport.SetCallTimeout(60000);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sample/Tests/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_2_imx_functions(self):
# Register off-chain
# Wait up to 3 times for "Passport account already registered" to appear
attempts = 0
while attempts < 3:
while attempts < 6:
self.altdriver.find_object(By.NAME, "RegisterOffchainBtn").tap()
self.assertEqual("Registering off-chain...", output.get_text())
time.sleep(20)
Expand Down

0 comments on commit ee5052f

Please sign in to comment.