+async function testThumbnail (server: ServerInfo, videoId: number | string) {
+ const res = await getVideo(server.url, videoId)
+ const video: VideoDetails = res.body
+
+ const res1 = await makeRawRequest(join(server.url, video.thumbnailPath), HttpStatusCode.OK_200)
+ expect(res1.body).to.not.have.lengthOf(0)
+
+ const res2 = await makeRawRequest(join(server.url, video.thumbnailPath), HttpStatusCode.OK_200)
+ expect(res2.body).to.not.have.lengthOf(0)
+}
+