From db01b0063cb44b170f541675bbe936461dcf55ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Rou=C3=A9?= Date: Fri, 2 Jun 2023 15:39:26 +0200 Subject: [PATCH] Fix a test that relied on observation of every single changes --- Tests/GRDBTests/ValueObservationTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/GRDBTests/ValueObservationTests.swift b/Tests/GRDBTests/ValueObservationTests.swift index 42e85beef..31510bee7 100644 --- a/Tests/GRDBTests/ValueObservationTests.swift +++ b/Tests/GRDBTests/ValueObservationTests.swift @@ -936,7 +936,7 @@ class ValueObservationTests: GRDBTestCase { Task { let observation = ValueObservation.trackingConstantRegion(Table("t").fetchCount) for try await count in observation.values(in: writer) { - if count == 3 { + if count >= 3 { cancelledTask.cancel() break } else {