Skip to content

Commit

Permalink
Rename the EndToEndTests in the WebSocket project to WebSocketServerE…
Browse files Browse the repository at this point in the history
…ndToEndTests. (#1032)

Motivation:

To make the web socket server end to end tests class more descriptive.
This will allow ‘WebSocketClientEndToEndTests’ or other end to end tests to be added at a later date.

Modifications:

Renames the class and filename for ‘EndToEndTests’ to ‘WebSocketServerEndToEndTests’

Result:

The nomenclature now allow for other end to end tests to be added.
  • Loading branch information
tigerpixel authored and Lukasa committed Jun 12, 2019
1 parent dfe4318 commit f508435
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ import XCTest
testCase(EchoServerClientTest.allTests),
testCase(EmbeddedChannelTest.allTests),
testCase(EmbeddedEventLoopTest.allTests),
testCase(EndToEndTests.allTests),
testCase(EventCounterHandlerTest.allTests),
testCase(EventLoopFutureTest.allTests),
testCase(EventLoopTest.allTests),
Expand Down Expand Up @@ -93,5 +92,6 @@ import XCTest
testCase(UtilitiesTest.allTests),
testCase(WebSocketFrameDecoderTest.allTests),
testCase(WebSocketFrameEncoderTest.allTests),
testCase(WebSocketServerEndToEndTests.allTests),
])
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
//
// EndToEndTests+XCTest.swift
// WebSocketServerEndToEndTests+XCTest.swift
//
import XCTest

Expand All @@ -22,9 +22,9 @@ import XCTest
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
///

extension EndToEndTests {
extension WebSocketServerEndToEndTests {

static var allTests : [(String, (EndToEndTests) -> () throws -> Void)] {
static var allTests : [(String, (WebSocketServerEndToEndTests) -> () throws -> Void)] {
return [
("testBasicUpgradeDance", testBasicUpgradeDance),
("testUpgradeWithProtocolName", testUpgradeWithProtocolName),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private class WebSocketRecorderHandler: ChannelInboundHandler {
}
}

class EndToEndTests: XCTestCase {
class WebSocketServerEndToEndTests: XCTestCase {
func createTestFixtures(upgraders: [NIOWebSocketServerUpgrader]) -> (loop: EmbeddedEventLoop, serverChannel: EmbeddedChannel, clientChannel: EmbeddedChannel) {
let loop = EmbeddedEventLoop()
let serverChannel = EmbeddedChannel(loop: loop)
Expand Down

0 comments on commit f508435

Please sign in to comment.