diff options
Diffstat (limited to 'server/tests/api/live/live.ts')
-rw-r--r-- | server/tests/api/live/live.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index 2198114b4..de3181928 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts | |||
@@ -121,7 +121,7 @@ describe('Test live', function () { | |||
121 | const live: LiveVideo = resLive.body | 121 | const live: LiveVideo = resLive.body |
122 | 122 | ||
123 | if (server.url === servers[0].url) { | 123 | if (server.url === servers[0].url) { |
124 | expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':1936/live') | 124 | expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live') |
125 | expect(live.streamKey).to.not.be.empty | 125 | expect(live.streamKey).to.not.be.empty |
126 | } else { | 126 | } else { |
127 | expect(live.rtmpUrl).to.be.null | 127 | expect(live.rtmpUrl).to.be.null |
@@ -185,7 +185,7 @@ describe('Test live', function () { | |||
185 | const live: LiveVideo = res.body | 185 | const live: LiveVideo = res.body |
186 | 186 | ||
187 | if (server.url === servers[0].url) { | 187 | if (server.url === servers[0].url) { |
188 | expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':1936/live') | 188 | expect(live.rtmpUrl).to.equal('rtmp://' + server.hostname + ':' + servers[0].rtmpPort + '/live') |
189 | expect(live.streamKey).to.not.be.empty | 189 | expect(live.streamKey).to.not.be.empty |
190 | } else { | 190 | } else { |
191 | expect(live.rtmpUrl).to.be.null | 191 | expect(live.rtmpUrl).to.be.null |
@@ -216,7 +216,7 @@ describe('Test live', function () { | |||
216 | let rtmpUrl: string | 216 | let rtmpUrl: string |
217 | 217 | ||
218 | before(function () { | 218 | before(function () { |
219 | rtmpUrl = 'rtmp://' + servers[0].hostname + ':1936' | 219 | rtmpUrl = 'rtmp://' + servers[0].hostname + ':' + servers[0].rtmpPort + '' |
220 | }) | 220 | }) |
221 | 221 | ||
222 | async function createLiveWrapper () { | 222 | async function createLiveWrapper () { |