Update TestsCase

This commit is contained in:
shogo4405 2018-07-06 12:18:53 +09:00
parent b814375c65
commit d40b50bcc5
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import XCTest
final class AMF0SerializerTests: XCTestCase {
static let connectionChunk: ASObject = [
"tcUrl": "rtmp: //localhost: 1935/live",
"tcUrl": "rtmp://localhost:1935/live",
"flashVer": "FMLE/3.0 (compatible; FMSc/1.0)",
"swfUrl": nil,
"app": "live",
@ -28,7 +28,7 @@ final class AMF0SerializerTests: XCTestCase {
let value: Any? = result[key]! as Any?
switch key {
case "tcUrl":
XCTAssertEqual(value as? String, "rtmp: //localhost: 1935/live")
XCTAssertEqual(value as? String, "rtmp://localhost:1935/live")
case "flashVer":
XCTAssertEqual(value as? String, "FMLE/3.0 (compatible; FMSc/1.0)")
case "swfUrl":

View File

@ -9,7 +9,7 @@ final class RTMPConnectionTests: XCTestCase {
let url: URL = URL(fileURLWithPath: bundle.path(forResource: "SampleVideo_360x240_5mb-base", ofType: "mp4")!)
let connection: RTMPConnection = RTMPConnection()
let stream: RTMPStream = RTMPStream(connection: connection)
connection.connect("rtmp: //localhost: 1935/live")
connection.connect("rtmp://localhost:1935/live")
stream.appendFile(url)
stream.publish("live")
sleep(10000)