Skip to content

Commit

Permalink
Polishing #1441
Browse files Browse the repository at this point in the history
Flush keys before running tests.
  • Loading branch information
mp911de committed Oct 26, 2020
1 parent 30076e9 commit a858478
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import io.lettuce.test.LettuceExtension
import kotlinx.coroutines.future.await
import kotlinx.coroutines.runBlocking
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import javax.inject.Inject
Expand All @@ -30,10 +31,17 @@ import javax.inject.Inject
* Integration tests for Kotlin Transaction closure extensions.
*
* @author Mark Paluch
* @author Mikhael Sokolov
*/
@ExtendWith(LettuceExtension::class)
class TransactionExtensionsIntegrationTests : TestSupport() {

@BeforeEach
@Inject
internal fun setUp(connection: StatefulRedisConnection<String, String>) {
connection.sync().flushall()
}

@Test
@Inject
internal fun shouldApplyMultiClosure(connection: StatefulRedisConnection<String, String>) {
Expand Down

0 comments on commit a858478

Please sign in to comment.