Skip to content

Commit 5e4d44c

Browse files
committed
Increase timeouts on tests
1 parent e01bc07 commit 5e4d44c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Tests/PowerSync/PowerSync.Common.Tests/Client/PowerSyncDatabaseTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ await db.Execute(
649649
Assert.Equal(2, callCount);
650650
}
651651

652-
[Fact(Timeout = 2500)]
652+
[Fact(Timeout = 3000)]
653653
public async void WatchSingleCancelledTest()
654654
{
655655
int callCount = 0;
@@ -688,13 +688,13 @@ await db.Execute(
688688
);
689689

690690
// Ensure nothing received from cancelled result
691-
Assert.False(await semCancelled.WaitAsync(100));
691+
Assert.False(await semCancelled.WaitAsync(200));
692692

693693
await semAlwaysRunning.WaitAsync();
694694
Assert.Equal(5, callCount);
695695
}
696696

697-
[Fact(Timeout = 2000)]
697+
[Fact(Timeout = 3000)]
698698
public async Task WatchSchemaResetTest()
699699
{
700700
var dbId = Guid.NewGuid().ToString();
@@ -720,7 +720,7 @@ public async Task WatchSchemaResetTest()
720720
},
721721
OnError = error => throw error
722722
});
723-
Assert.True(await sem.WaitAsync(100));
723+
Assert.True(await sem.WaitAsync(200));
724724
Assert.Equal(0, lastCount);
725725

726726
var resolved = await GetSourceTables(db, querySql);
@@ -733,7 +733,7 @@ await db.Execute(
733733
"insert into assets(id, description, make) values (?, ?, ?)",
734734
[Guid.NewGuid().ToString(), "some desc", "some make"]
735735
);
736-
Assert.True(await sem.WaitAsync(100));
736+
Assert.True(await sem.WaitAsync(200));
737737
Assert.Equal(i + 1, lastCount);
738738
}
739739
Assert.Equal(3, lastCount);
@@ -744,18 +744,18 @@ await db.Execute(
744744
Assert.Single(resolved);
745745
Assert.Contains("ps_data__assets", resolved);
746746

747-
Assert.True(await sem.WaitAsync(100));
747+
Assert.True(await sem.WaitAsync(200));
748748
Assert.Equal(0, lastCount);
749749

750750
await db.Execute("insert into assets select * from inactive_local_assets");
751-
Assert.True(await sem.WaitAsync(100));
751+
Assert.True(await sem.WaitAsync(200));
752752
Assert.Equal(3, lastCount);
753753

754754
// Sanity check
755755
query.Dispose();
756756

757757
await db.Execute("delete from assets");
758-
Assert.False(await sem.WaitAsync(100));
758+
Assert.False(await sem.WaitAsync(200));
759759
Assert.Equal(3, lastCount);
760760
}
761761

0 commit comments

Comments
 (0)