Selaa lähdekoodia

Fix warnings in tests.

Nikita Lutsenko 4 vuotta sitten
vanhempi
commit
febe680525

+ 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];