FileUploadWorkerIT: ensure to reset fileuploader testing property after test

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-10-27 13:37:42 +02:00
parent a4adf83efe
commit 3469ebfbe5
No known key found for this signature in database
GPG key ID: 2585783189A62105

View file

@ -22,11 +22,17 @@
package com.owncloud.android.files.services
import org.junit.After
import org.junit.Before
class FileUploadWorkerIT : FileUploaderIT() {
@Before
fun enableWorker() {
fun forceUploadWorker() {
FileUploader.setForceNewUploadWorker(true)
}
@After
fun resetForceUploadWorker() {
FileUploader.setForceNewUploadWorker(false)
}
}