Try to fix mock server ports
This commit is contained in:
parent
221d876fa7
commit
3c25d37aef
5 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ export class MockInstancesIndex {
|
|||
})
|
||||
})
|
||||
|
||||
const port = 42101 + randomInt(1, 100)
|
||||
const port = 42000 + randomInt(1, 1000)
|
||||
app.listen(port, () => res(port))
|
||||
})
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ export class MockJoinPeerTubeVersions {
|
|||
})
|
||||
})
|
||||
|
||||
const port = 42201 + randomInt(1, 100)
|
||||
const port = 43000 + randomInt(1, 1000)
|
||||
app.listen(port, () => res(port))
|
||||
})
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ export class MockObjectStorage {
|
|||
)
|
||||
})
|
||||
|
||||
const port = 42301 + randomInt(1, 100)
|
||||
const port = 44000 + randomInt(1, 1000)
|
||||
this.server = app.listen(port, () => res(port))
|
||||
})
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ export class MockBlocklist {
|
|||
return res.json(this.body)
|
||||
})
|
||||
|
||||
const port = 42201 + randomInt(1, 100)
|
||||
const port = 45000 + randomInt(1, 1000)
|
||||
this.server = app.listen(port, () => res(port))
|
||||
})
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ class MockProxy {
|
|||
|
||||
initialize () {
|
||||
return new Promise<number>(res => {
|
||||
const port = 42501 + randomInt(1, 100)
|
||||
const port = 46000 + randomInt(1, 1000)
|
||||
|
||||
this.server = proxy(createServer())
|
||||
this.server.listen(port, () => res(port))
|
||||
|
|
Loading…
Reference in a new issue