mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
FileUploadWorkerIT: ensure to reset fileuploader testing property after test
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
a4adf83efe
commit
3469ebfbe5
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue