-async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') {
+async function expectLogContain (server: PeerTubeServer, str: string) {
+ const content = await server.servers.getLogContent()
+
+ expect(content.toString()).to.contain(str)
+}
+
+async function testImage (url: string, imageName: string, imageHTTPPath: string, extension = '.jpg') {