fail on demand

This commit is contained in:
Nicolas Raoul 2024-07-27 22:56:38 +09:00
parent 767ee24468
commit 6178819987

View file

@ -310,6 +310,9 @@ class UploadWorker(var appContext: Context, workerParams: WorkerParameters) :
try { try {
//Upload the file to stash //Upload the file to stash
if (filename!!.contains("fail")) {
throw Exception("fake exception for tests");
}
val stashUploadResult = uploadClient.uploadFileToStash( val stashUploadResult = uploadClient.uploadFileToStash(
filename!!, contribution, notificationProgressUpdater filename!!, contribution, notificationProgressUpdater
).onErrorReturn{ ).onErrorReturn{