/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import * as chai from 'chai'
import 'mocha'
+import * as chai from 'chai'
import {
acceptFollower,
cleanupTests,
describe('Auto follow index', function () {
const instanceIndexServer = new MockInstancesIndex()
+ let port: number
before(async () => {
- await instanceIndexServer.initialize()
+ port = await instanceIndexServer.initialize()
})
it('Should not auto follow index if the option is not enabled', async function () {
followings: {
instance: {
autoFollowIndex: {
- indexUrl: 'http://localhost:42100',
+ indexUrl: `http://localhost:${port}/api/v1/instances/hosts`,
enabled: true
}
}