DocumentsStorageProviderIT: add timeout to testServerChangedFileContent()

This test sometimes hangs forever, resulting in (for example) CI builds being killed.
This way, only this test fails and the rest of the suite continues.

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2021-12-20 15:05:24 +01:00 committed by Álvaro Brey (Rebase PR Action)
parent e13dc5db81
commit 6f1d434e80

View file

@ -176,7 +176,8 @@ class DocumentsStorageProviderIT : AbstractOnServerIT() {
assertExistsOnServer(client, ocFile1.remotePath, false)
}
@Test
@Suppress("MagicNumber")
@Test(timeout = 5 * 60 * 1000)
fun testServerChangedFileContent() {
// create random file
val file1 = rootDir.createFile("text/plain", RandomString.make())!!