Skip to content

Commit a0dbaf6

Browse files
committed
Fix typo
1 parent 522322f commit a0dbaf6

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

PusherSwift.xcodeproj/project.pbxproj

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -74,6 +74,9 @@
7474
E2CFE43122D79CA7004187C3 /* EventParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2CFE43022D79CA7004187C3 /* EventParser.swift */; };
7575
E2F40FA523ED782B00985C40 /* Crypto.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2F40FA423ED782B00985C40 /* Crypto.swift */; };
7676
E2F40FA723ED79BC00985C40 /* CryptoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E2F40FA623ED79BC00985C40 /* CryptoTests.swift */; };
77+
E468054E2E015A300054E468 /* WebSocketClientTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E468054D2E015A300054E468 /* WebSocketClientTests.swift */; };
78+
E46805542E015A350054E468 /* NWWebSocketServer.swift in Sources */ = {isa = PBXBuildFile; fileRef = E46805512E015A350054E468 /* NWWebSocketServer.swift */; };
79+
E46805552E015A350054E468 /* WebSocketServerConnection.swift in Sources */ = {isa = PBXBuildFile; fileRef = E46805522E015A350054E468 /* WebSocketServerConnection.swift */; };
7780
/* End PBXBuildFile section */
7881

7982
/* Begin PBXContainerItemProxy section */
@@ -158,6 +161,9 @@
158161
E2CFE43022D79CA7004187C3 /* EventParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventParser.swift; sourceTree = "<group>"; };
159162
E2F40FA423ED782B00985C40 /* Crypto.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Crypto.swift; sourceTree = "<group>"; };
160163
E2F40FA623ED79BC00985C40 /* CryptoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CryptoTests.swift; sourceTree = "<group>"; };
164+
E468054D2E015A300054E468 /* WebSocketClientTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSocketClientTests.swift; sourceTree = "<group>"; };
165+
E46805512E015A350054E468 /* NWWebSocketServer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NWWebSocketServer.swift; sourceTree = "<group>"; };
166+
E46805522E015A350054E468 /* WebSocketServerConnection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSocketServerConnection.swift; sourceTree = "<group>"; };
161167
/* End PBXFileReference section */
162168

163169
/* Begin PBXFrameworksBuildPhase section */
@@ -374,6 +380,8 @@
374380
539D9AF72507E11200B5765A /* Services */ = {
375381
isa = PBXGroup;
376382
children = (
383+
E46805532E015A350054E468 /* Server */,
384+
E468054D2E015A300054E468 /* WebSocketClientTests.swift */,
377385
33BB99641D21226C00B25C2A /* PusherConnectionTests.swift */,
378386
E2594CE32447753200E36300 /* ChannelEventQueueTests.swift */,
379387
E291AFA124486CAB00594552 /* ChannelEventQueue+DecryptionTests.swift */,
@@ -409,6 +417,15 @@
409417
name = Frameworks;
410418
sourceTree = "<group>";
411419
};
420+
E46805532E015A350054E468 /* Server */ = {
421+
isa = PBXGroup;
422+
children = (
423+
E46805512E015A350054E468 /* NWWebSocketServer.swift */,
424+
E46805522E015A350054E468 /* WebSocketServerConnection.swift */,
425+
);
426+
path = Server;
427+
sourceTree = "<group>";
428+
};
412429
/* End PBXGroup section */
413430

414431
/* Begin PBXHeadersBuildPhase section */
@@ -628,7 +645,10 @@
628645
33BB99791D21230100B25C2A /* PusherClientInitializationTests.swift in Sources */,
629646
33BB99771D21230100B25C2A /* PresenceChannelTests.swift in Sources */,
630647
33BB997C1D21230100B25C2A /* PusherTopLevelAPITests.swift in Sources */,
648+
E468054E2E015A300054E468 /* WebSocketClientTests.swift in Sources */,
631649
736E53F7242A45AC0052CC1B /* XCTest+Assertions.swift in Sources */,
650+
E46805542E015A350054E468 /* NWWebSocketServer.swift in Sources */,
651+
E46805552E015A350054E468 /* WebSocketServerConnection.swift in Sources */,
632652
57F6E444269C5A2E00ECFAD4 /* TestObjects.swift in Sources */,
633653
E2594CE42447753200E36300 /* ChannelEventQueueTests.swift in Sources */,
634654
33BB997B1D21230100B25C2A /* PusherIncomingEventHandlingTests.swift in Sources */,

Tests/Unit/Services/Server/NWWebSocketServer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ internal class WebSocketServer {
7777
case .ready:
7878
print("Server ready.")
7979
case .cancelled:
80-
self.stopSever(error: nil)
80+
self.stopServer(error: nil)
8181
case .failed(let error):
82-
self.stopSever(error: error)
82+
self.stopServer(error: error)
8383
@unknown default:
8484
fatalError()
8585
}
@@ -90,7 +90,7 @@ internal class WebSocketServer {
9090
print("server did close connection \(connection.id)")
9191
}
9292

93-
private func stopSever(error: NWError?) {
93+
private func stopServer(error: NWError?) {
9494
self.listener = nil
9595
for connection in self.connectionsByID.values {
9696
connection.didStopHandler = nil

0 commit comments

Comments
 (0)