fixed timeUntilStale returning negetive Duration instead of 0

This commit is contained in:
Kingkor Roy Tirtho
2022-04-24 18:47:07 +06:00
parent 1d76c3df3d
commit 421aa85bce
2 changed files with 12 additions and 5 deletions
@@ -397,9 +397,6 @@ void main() {
});
test('should accept unresolved query config in update function', () async {
// test is failing in [QueryObserver.updateResult] called by
// staleTimeout callback. For some reason _currentResult and
// prevResult is shallow equal
final key = queryKey();
;
final observer = QueryObserver<Map<String, dynamic>, dynamic,