Skip to content
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

Fix FirebaseDatabase integration test files content #13781

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FirebaseDatabase/Tests/Integration/FData.m
Original file line number Diff line number Diff line change
Expand Up @@ -1190,10 +1190,10 @@ - (void)testEffectsOfSetPriorityIsImmediatelyEvident {
}];

NSArray *expectedValues = @[ @5, @5 ];
NSArray *expectedPriorites = @[ [NSNull null], @10 ];
NSArray *expectedPriorities = @[ [NSNull null], @10 ];
XCTAssertTrue([values isEqualToArray:expectedValues],
@"Expected both listeners to get 5, got %@ instead", values);
XCTAssertTrue([priorities isEqualToArray:expectedPriorites],
XCTAssertTrue([priorities isEqualToArray:expectedPriorities],
@"The first listener should have missed the priority, got %@ instead", priorities);
}

Expand Down
4 changes: 2 additions & 2 deletions FirebaseDatabase/Tests/Integration/FTransactionTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -720,14 +720,14 @@ - (void)testUpdateShouldNotCancelUnrelatedTransactions {
barTransactionDone = YES;
}];

NSDictionary *udpateData = @{
NSDictionary *updateData = @{
@"foo" : @"newValue",
@"boo" : @"newValue",
@"doo/foo" : @"newValue",
@"loo" : @{@"doo" : @{@"boo" : @"newValue"}}
};

[self waitForCompletionOf:ref updateChildValues:udpateData];
[self waitForCompletionOf:ref updateChildValues:updateData];
XCTAssertTrue(fooTransactionDone, "Should have gotten cancelled before the update");
XCTAssertFalse(barTransactionDone, "Should run after the update");
[ref.repo setHijackHash:NO];
Expand Down
Loading