Skip to content

Commit e792abb

Browse files
committed
Attempt to deflake test
1 parent 623af60 commit e792abb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/powersync_core/test/watch_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ void main() {
8383
lastCount = count;
8484
}
8585

86-
// The number of read queries must not be greater than the number of writes overall.
86+
// The number of read queries must not be greater than the number of
87+
//writes overall, plus one for an initial read.
8788
expect(numberOfQueries,
88-
lessThanOrEqualTo(results.last.first['count'] as int));
89+
lessThanOrEqualTo((results.last.first['count'] as int) + 1));
8990

9091
DateTime? lastTime;
9192
for (var r in times) {

0 commit comments

Comments
 (0)