Skip to content

Commit

Permalink
disable rtmp timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
longbai committed Sep 3, 2016
1 parent 43ca234 commit f0070e9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions NetDiagTests/RtmpTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@ - (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testTimeout {
__block BOOL run = NO;
[QNNRtmpHandshake start:@"up.qiniu.com" output:[[QNNTestLogger alloc] init] complete:^(QNNRtmpHandshakeResult* r) {
XCTAssertNotNil(r, @"need result");
XCTAssertEqual(ETIMEDOUT, r.code, @"timeout code");
run = YES;
}];
AGWW_WAIT_WHILE(!run, 100.0);
XCTAssert(run, @"PASS");
}

//- (void)testTimeout {
// __block BOOL run = NO;
// [QNNRtmpHandshake start:@"up.qiniu.com" output:[[QNNTestLogger alloc] init] complete:^(QNNRtmpHandshakeResult* r) {
// XCTAssertNotNil(r, @"need result");
// XCTAssertEqual(ETIMEDOUT, r.code, @"timeout code");
// run = YES;
// }];
// AGWW_WAIT_WHILE(!run, 100.0);
// XCTAssert(run, @"PASS");
//}

- (void)testStop {
__block BOOL run = NO;
Expand Down

0 comments on commit f0070e9

Please sign in to comment.