Skip to content

Commit e715908

Browse files
Add a random number to the beginning instead of 'a' so that we have to try less times to find an unlinked playfab account
1 parent 5c62291 commit e715908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/SequenceSDK/WaaS/Tests/WaaSFederatedAuthTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using PlayFab.ClientModels;
66
using Sequence.EmbeddedWallet;
77
using UnityEngine;
8+
using Random = UnityEngine.Random;
89

910
namespace Sequence.EmbeddedWallet.Tests
1011
{
@@ -86,7 +87,7 @@ private void RetryIfAlreadyLinked(string error)
8687
{
8788
if (error.Contains("AccountAlreadyLinked"))
8889
{
89-
_email = "a" + _email;
90+
_email = Random.Range(0, 9999999).ToString() + _email;
9091
var request = new LoginWithEmailAddressRequest
9192
{
9293
Email = _email,

0 commit comments

Comments
 (0)