Skip to content

Commit

Permalink
Update DropboxRepoTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin authored Aug 13, 2024
1 parent 3a630d3 commit a08fe2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/test/java/com/orgzly/android/repos/DropboxRepoTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ class DropboxRepoTest : SyncRepoTest {

@After
fun tearDown() {
val dropboxRepo = syncRepo as DropboxRepo
dropboxRepo.deleteDirectory(syncRepo.uri)
if (this::syncRepo.isInitialized) {
val dropboxRepo = syncRepo as DropboxRepo
dropboxRepo.deleteDirectory(syncRepo.uri)
}
}

@Test
Expand Down Expand Up @@ -130,4 +132,4 @@ class DropboxRepoTest : SyncRepoTest {
override fun testRenameBook_sameSubfolderNewLeafName() {
SyncRepoTest.testRenameBook_sameSubfolderNewLeafName(syncRepo)
}
}
}

0 comments on commit a08fe2f

Please sign in to comment.