@@ -362,26 +362,25 @@ - (void)testOnceValueFiresExactlyOnce {
362362}
363363
364364- (void )testOnceChildAddedFiresExactlyOnce {
365- for (int i = 0 ; i < 100 ; i++) {
366-
365+ for (int i = 0 ; i < 100 ; i++) {
367366 FIRDatabaseReference* path = [FTestHelpers getRandomNode ];
368367 __block BOOL firstCall = YES ;
369368
370369 __block BOOL done = NO ;
371370
372371 [path observeSingleEventOfType: FIRDataEventTypeChildAdded
373372 withBlock: ^(FIRDataSnapshot* snapshot) {
374- XCTAssertTrue (firstCall, @" Properly saw first call" );
375- firstCall = NO ;
376- XCTAssertEqualObjects (@42 , [snapshot value ], @" Properly saw node value" );
377- XCTAssertEqualObjects (@" foo" , [snapshot key ],
378- @" Properly saw the first node" );
379- if (![[snapshot value ] isEqual: @42 ]) {
380- exit (-1 );
381- }
382-
383- done = YES ;
384- }];
373+ XCTAssertTrue (firstCall, @" Properly saw first call" );
374+ firstCall = NO ;
375+ XCTAssertEqualObjects (@42 , [snapshot value ], @" Properly saw node value" );
376+ XCTAssertEqualObjects (@" foo" , [snapshot key ],
377+ @" Properly saw the first node" );
378+ if (![[snapshot value ] isEqual: @42 ]) {
379+ exit (-1 );
380+ }
381+
382+ done = YES ;
383+ }];
385384
386385 [[path child: @" foo" ] setValue: @42 ];
387386 [[path child: @" bar" ] setValue: @84 ]; // XXX FIXME sometimes this event fires first
0 commit comments