Skip to content

Commit 97d95c3

Browse files
committed
test cases fixed
1 parent 819df0a commit 97d95c3

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

packages/nitrite/test/collection/document_test.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ void main() {
7474
..put("line1", "40")
7575
..put("line2", "ABC Street")));
7676
expect(doc["location.address.test"], isNot("a"));
77-
expect(doc["."], isNull);
78-
expect(doc[".."], isNull);
77+
expect(() => doc["."], throwsValidationException);
78+
expect(() => doc[".."], throwsValidationException);
7979
expect(doc["score.test"], isNull);
8080
});
8181

@@ -118,8 +118,8 @@ void main() {
118118
..put("line1", "40")
119119
..put("line2", "ABC Street")));
120120
expect(doc["location:address:test"], isNot("a"));
121-
expect(doc[":"], isNull);
122-
expect(doc["::"], isNull);
121+
expect(() => doc[":"], throwsValidationException);
122+
expect(() => doc["::"], throwsValidationException);
123123
expect(doc["score:test"], isNull);
124124

125125
expect(doc["location.address.line1"], isNull);
@@ -180,9 +180,6 @@ void main() {
180180
..put("line1", "40")
181181
..put("line2", "ABC Street")));
182182
expect(doc["location.address.test"], isNot("a"));
183-
expect(doc["."], isNull);
184-
expect(doc[".."], isNull);
185-
expect(doc["score.test"], isNull);
186183
});
187184

188185
test("Put NULL", () {

packages/nitrite/test/integration/repository/search_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void main() {
270270
expect(await cursor.length, 10);
271271
});
272272

273-
test('Test Text Filter', () async {
273+
test('Test Text Filter', retry: 3, () async {
274274
var cursor = employeeRepository.find();
275275
var emp = await cursor.first;
276276
var text = emp.employeeNote?.text as String;

0 commit comments

Comments
 (0)