Make sure to turn off logging in setup
This commit is contained in:
parent
cf597ae09d
commit
6e3d97617f
@ -84,7 +84,7 @@ class SocketMangerTest : XCTestCase {
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
|
||||
manager = TestManager(socketURL: URL(string: "http://localhost/")!)
|
||||
manager = TestManager(socketURL: URL(string: "http://localhost/")!, config: [.log(false)])
|
||||
socket = nil
|
||||
socket2 = nil
|
||||
}
|
||||
|
||||
@ -386,7 +386,7 @@ class SocketSideEffectTest: XCTestCase {
|
||||
}
|
||||
|
||||
func testSettingConfigAfterInitWhenConnectedDoesNotIgnoreChanges() {
|
||||
manager.connect()
|
||||
manager.setTestStatus(.connected)
|
||||
manager.config = [.log(true)]
|
||||
|
||||
XCTAssertTrue(DefaultSocketLogger.Logger.log, "It should set logging to false after creation")
|
||||
@ -425,7 +425,7 @@ class SocketSideEffectTest: XCTestCase {
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
|
||||
manager = SocketManager(socketURL: URL(string: "http://localhost/")!)
|
||||
manager = SocketManager(socketURL: URL(string: "http://localhost/")!, config: [.log(false)])
|
||||
socket = manager.defaultSocket
|
||||
socket.setTestable()
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@
|
||||
- (void)setUp {
|
||||
[super setUp];
|
||||
NSURL* url = [[NSURL alloc] initWithString:@"http://localhost"];
|
||||
self.manager = [[TestManager alloc] initWithSocketURL:url config:nil];
|
||||
self.manager = [[TestManager alloc] initWithSocketURL:url config:@{@"log": @NO}];
|
||||
self.socket = nil;
|
||||
self.socket2 = nil;
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
- (void)setUp {
|
||||
[super setUp];
|
||||
NSURL* url = [[NSURL alloc] initWithString:@"http://localhost"];
|
||||
self.manager = [[SocketManager alloc] initWithSocketURL:url config:nil];
|
||||
self.manager = [[SocketManager alloc] initWithSocketURL:url config:@{@"log": @NO}];
|
||||
self.socket = [self.manager defaultSocket];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user