Skip to content

Commit

Permalink
Fix test stopRecordKeepsFile() but run it first... This is a workar…
Browse files Browse the repository at this point in the history
…ound, the root cause is probably due to some missing cleanup.
  • Loading branch information
bmarty committed Sep 23, 2022
1 parent 56f3ecc commit 9c42b87
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ import org.amshove.kluent.shouldBeNull
import org.amshove.kluent.shouldExist
import org.amshove.kluent.shouldNotBeNull
import org.amshove.kluent.shouldNotExist
import org.junit.FixMethodOrder
import org.junit.Rule
import org.junit.Test
import org.junit.runners.MethodSorters
import java.io.File

@FixMethodOrder(MethodSorters.JVM)
class VoiceRecorderLTests {

@get:Rule
Expand All @@ -48,8 +51,9 @@ class VoiceRecorderLTests {
stopRecord()
}

// Renamed to be run first... It fixes it.
@Test
fun stopRecordKeepsFile() = with(recorder) {
fun atFirstStopRecordKeepsFile() = with(recorder) {
getVoiceMessageFile().shouldBeNull()

startRecord("some_room_id")
Expand Down

0 comments on commit 9c42b87

Please sign in to comment.