소스 검색

Fix warnings in tests.

Nikita Lutsenko 4 년 전
부모
커밋
febe680525
3개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 3
      Tests/Operations/SRTWebSocketOperation.m
  2. 1 1
      Tests/Utilities/SRAutobahnUtilities.h
  3. 1 1
      Tests/Utilities/SRAutobahnUtilities.m

+ 4 - 3
Tests/Operations/SRTWebSocketOperation.m

@@ -46,9 +46,10 @@
 - (void)start;
 {
     dispatch_async(dispatch_get_main_queue(), ^{
-        _webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:_url]];
-        _webSocket.delegate = self;
-        [_webSocket open];
+        SRWebSocket *socket  = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:self->_url]];
+        socket.delegate = self;
+        self->_webSocket = socket;
+        [socket open];
     });
     self.isExecuting = YES;
 }

+ 1 - 1
Tests/Utilities/SRAutobahnUtilities.h

@@ -29,7 +29,7 @@ extern BOOL SRAutobahnIsValidResultBehavior(NSString *caseIdentifier, NSString *
 #pragma mark - Utilities
 ///--------------------------------------
 
-extern BOOL SRRunLoopRunUntil(BOOL (^predicate)(), NSTimeInterval timeout);
+extern BOOL SRRunLoopRunUntil(BOOL (^predicate)(void), NSTimeInterval timeout);
 
 ///--------------------------------------
 #pragma mark - Setup

+ 1 - 1
Tests/Utilities/SRAutobahnUtilities.m

@@ -68,7 +68,7 @@ BOOL SRAutobahnIsValidResultBehavior(NSString *caseIdentifier, NSString *behavio
 #pragma mark - Utilities
 ///--------------------------------------
 
-BOOL SRRunLoopRunUntil(BOOL (^predicate)(), NSTimeInterval timeout)
+BOOL SRRunLoopRunUntil(BOOL (^predicate)(void), NSTimeInterval timeout)
 {
     NSDate *timeoutDate = [NSDate dateWithTimeIntervalSinceNow:timeout];