Skip to content

Commit

Permalink
Fix FirebaseDatabase integration test files content (#13781)
Browse files Browse the repository at this point in the history
  • Loading branch information
MojtabaHs authored Oct 3, 2024
1 parent cf2348d commit 7c4c134
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7c4c134

Please sign in to comment.