Skip to content

Commit

Permalink
Add before/after to test variables
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Apr 8, 2024
1 parent e71876c commit 67a801b
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,20 @@ import kotlin.test.*

class TempTorCmdQueueUnitTest {

private val ctrl = TestCtrl()
private val queue = TempTorCmdQueue.of(UncaughtException.Handler.THROW)
private lateinit var ctrl: TestCtrl
private lateinit var queue: TempTorCmdQueue

@BeforeTest
fun setup() {
ctrl = TestCtrl()
queue = TempTorCmdQueue.of(UncaughtException.Handler.THROW)
}

@AfterTest
fun tearDown() {
ctrl.destroy()
queue.destroy()
}

@Test
fun givenEnqueuedJob_whenAttach_thenIsTransferred() {
Expand Down

0 comments on commit 67a801b

Please sign in to comment.