 
         expectation.fulfill()
     }
-
-    let token = "Testing" as DiscordToken
-
-    var engine: DiscordEngine!
-    var expectation: XCTestExpectation!
-
-    override func setUp() {
-        engine = DiscordEngine(delegate: self)
-    }
 }

        waitForExpectations(timeout: 0.2)
    }

    func engine(_ engine: DiscordEngine, didReceiveEvent event: DiscordDispatchEvent,
                with payload: DiscordGatewayPayload) {
        switch event {

import XCTest
@testable import SwiftDiscord

class TestDiscordEngine : XCTestCase {
    func testEngineCorrectlyHandlesHelloPacket() {
        expectation = expectation(description: "Engine should be connected after receiving hello packet")

