Correct var -> val for @get:Rules

This commit is contained in:
Michael Kaye 2022-05-17 12:12:49 +01:00
parent 1f89cfbe44
commit 868c33a8b4
4 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ private const val DUMMY_DEVICE_KEY = "DeviceKey"
@RunWith(AndroidJUnit4::class) @RunWith(AndroidJUnit4::class)
class CryptoStoreTest : InstrumentedTest { class CryptoStoreTest : InstrumentedTest {
@get:Rule var rule = RetryTestRule(3) @get:Rule val rule = RetryTestRule(3)
private val cryptoStoreHelper = CryptoStoreHelper() private val cryptoStoreHelper = CryptoStoreHelper()
private val clock = DefaultClock() private val clock = DefaultClock()

View File

@ -69,7 +69,7 @@ import java.util.concurrent.CountDownLatch
@LargeTest @LargeTest
class E2eeSanityTests : InstrumentedTest { class E2eeSanityTests : InstrumentedTest {
@get:Rule var rule = RetryTestRule(3) @get:Rule val rule = RetryTestRule(3)
/** /**
* Simple test that create an e2ee room. * Simple test that create an e2ee room.

View File

@ -53,7 +53,7 @@ import org.matrix.android.sdk.common.TestConstants
@LargeTest @LargeTest
class KeyShareTests : InstrumentedTest { class KeyShareTests : InstrumentedTest {
@get:Rule var rule = RetryTestRule(3) @get:Rule val rule = RetryTestRule(3)
@Test @Test
fun test_DoNotSelfShareIfNotTrusted() { fun test_DoNotSelfShareIfNotTrusted() {

View File

@ -48,7 +48,7 @@ import org.matrix.android.sdk.common.TestConstants
@LargeTest @LargeTest
class WithHeldTests : InstrumentedTest { class WithHeldTests : InstrumentedTest {
@get:Rule var rule = RetryTestRule(3) @get:Rule val rule = RetryTestRule(3)
@Test @Test
fun test_WithHeldUnverifiedReason() { fun test_WithHeldUnverifiedReason() {