+ })
+
+ it('Should not import again the same video', async function () {
+ if (areHttpImportTestsDisabled()) return
+
+ this.timeout(60000)
+
+ const params = `--target-url ${FIXTURE_URLS.youtube} --channel-name user_channel`
+ await cliCommand.execWithEnv(`${cmd} import ${params}`)
+
+ await waitJobs([ server ])
+
+ const { total, data } = await server.videos.list()
+ expect(total).to.equal(2)
+
+ const videos = data.filter(v => v.name === 'small video - youtube')
+ expect(videos).to.have.lengthOf(1)