Skip to content

Commit 38a1187

Browse files
committed
Add test for SSLSecurity; bump starscream
1 parent 2b6b001 commit 38a1187

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

SocketIO-MacTests/SocketObjectiveCTest.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@import Foundation;
1212
@import XCTest;
1313
@import SocketIO;
14+
@import StarscreamSocketIO;
1415

1516
@interface SocketObjectiveCTest : XCTestCase
1617

@@ -28,7 +29,7 @@ - (void)setUp {
2829

2930
- (void)testProperties {
3031
NSURL* url = nil;
31-
32+
3233
url = self.socket.socketURL;
3334
self.socket.forceNew = false;
3435
self.socket.handleQueue = dispatch_get_main_queue();
@@ -67,7 +68,7 @@ - (void)testOnAnySyntax {
6768
[self.socket onAny:^(SocketAnyEvent* any) {
6869
NSString* event = any.event;
6970
NSArray* data = any.items;
70-
71+
7172
[self.socket emit:event with:data];
7273
}];
7374
}
@@ -98,4 +99,9 @@ - (void)testSocketManager {
9899
[manager removeSocketWithLabel:@"test"];
99100
}
100101

102+
- (void)testSSLSecurity {
103+
SSLSecurity* sec = [[SSLSecurity alloc] initWithUsePublicKeys:0];
104+
sec.isReady = 0;
105+
}
106+
101107
@end

0 commit comments

Comments
 (0)