-
Notifications
You must be signed in to change notification settings - Fork 1.6k
enable disabled passed integration test #2120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,7 @@ @interface FSTTransactionTests : FSTIntegrationTestCase | |
|
||
@implementation FSTTransactionTests | ||
|
||
// We currently require every document read to also be written. | ||
// TODO(b/34879758): Re-enable this test once we fix it. | ||
- (void)xtestGetDocuments { | ||
- (void)testGetDocuments { | ||
FIRFirestore *firestore = [self firestore]; | ||
FIRDocumentReference *doc = [[firestore collectionWithPath:@"spaces"] documentWithAutoID]; | ||
[self writeDocumentRef:doc data:@{@"foo" : @1, @"desc" : @"Stuff", @"owner" : @"Jonny"}]; | ||
|
@@ -334,9 +332,7 @@ - (void)testUpdateTransactionally { | |
XCTAssertEqualObjects(@"yes", snapshot[@"other"]); | ||
} | ||
|
||
// We currently require every document read to also be written. | ||
// TODO(b/34879758): Re-enable this test once we fix it. | ||
- (void)xtestHandleReadingOneDocAndWritingAnother { | ||
- (void)testHandleReadingOneDocAndWritingAnother { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
FIRFirestore *firestore = [self firestore]; | ||
FIRDocumentReference *doc1 = [[firestore collectionWithPath:@"counters"] documentWithAutoID]; | ||
FIRDocumentReference *doc2 = [[firestore collectionWithPath:@"counters"] documentWithAutoID]; | ||
|
@@ -423,9 +419,7 @@ - (void)testReadingADocTwiceWithDifferentVersions { | |
XCTAssertEqualObjects(@(1234.0), snapshot[@"count"]); | ||
} | ||
|
||
// We currently require every document read to also be written. | ||
// TODO(b/34879758): Add this test back once we fix that. | ||
- (void)xtestCannotHaveAGetWithoutMutations { | ||
- (void)testCannotHaveAGetWithoutMutations { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to as above, but slightly different. In this test, there's no todo in teh body. So I'd recommend removing the TODO comment (like the others) but add in a TODO after line 440, similar to the first test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
FIRFirestore *firestore = [self firestore]; | ||
FIRDocumentReference *doc = [[firestore collectionWithPath:@"foo"] documentWithAutoID]; | ||
[self writeDocumentRef:doc data:@{@"foo" : @"bar"}]; | ||
|
@@ -438,6 +432,8 @@ - (void)xtestCannotHaveAGetWithoutMutations { | |
return nil; | ||
} | ||
completion:^(id _Nullable result, NSError *_Nullable error) { | ||
// We currently require every document read to also be written. | ||
// TODO(b/34879758): Fix this check once we drop that requirement. | ||
XCTAssertNotNil(error); | ||
[expectation fulfill]; | ||
}]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend removing the TODO on the line above as it no longer makes sense (there's nothing to re-enable). There's already a TODO for this issue within the body (line 46)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done