Skip to content

Commit

Permalink
add 30 sec timeouts to every test
Browse files Browse the repository at this point in the history
  • Loading branch information
greenEkatherine committed Mar 17, 2021
1 parent 151398a commit 6248aa2
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BadCrosswordDataInstrumentedTest : BadCrosswordDataTest() {
}
}

@Test
@Test(timeout = 30000)
fun badCrosswordDataInstrumentedTest() {
test()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class BadCrosswordStateInstrumentedTest : BadCrosswordDataTest() {
}
}

@Test
@Test(timeout = 30000)
fun badCrosswordStateInstrumentedTest() {
test()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BadImageReadingInstrumentedTest {

private lateinit var scenario: ActivityScenario<ChooseTopicsActivity>

@Test
@Test(timeout = 30000)
fun badImageReadingInstrumentedTest(){
Intent(
ApplicationProvider.getApplicationContext(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ChooseTopicsInstrumentedTest {
var activityTestRule: ActivityScenarioRule<MainActivity> =
ActivityScenarioRule(MainActivity::class.java)

@Test
@Test(timeout = 30000)
fun chooseTopicsInstrumentedTest() {
chooseGenerateCrossword()
onView(isRoot()).perform(waitForView(withId(R.id.ok_play)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class DeleteCrosswordAfterSolveInstrumentedTest : SolveCrossword(){

@Test
@Test(timeout = 30000)
fun deleteCrosswordAfterSolveInstrumentedTest() {
val crossword1 = generateCrossword()
crossword = generateCrossword()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.junit.runner.RunWith
// doesn't fit crossword.
class DeleteCrosswordInstrumentedTest : SolveCrossword() {

@Test
@Test(timeout = 30000)
fun deleteCrosswordInstrumentedTest() {
crossword = generateCrossword()
generateCrossword()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class ImpossibleToBuildInstrumentedTest : ChoseTopicsToastTest() {

@Test
@Test(timeout = 30000)
fun impossibleToBuildInstrumentedTest() {
choseTopicsImpl(
"impossibleToBuild.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class NotEnoughWordsBecauseTooLongInstrumentedTest : ChoseTopicsToastTest() {

@Test
@Test(timeout = 30000)
fun notEnoughWordsBecauseTooLongInstrumentedTest() {
choseTopicsImpl(
"tooLongWordsData.json", getContext().getString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class NotEnoughWordsBecauseTooShortInstrumentedTests : ChoseTopicsToastTest() {

@Test
@Test(timeout = 30000)
fun notEnoughWordsBecauseTooShortInstrumentedTests() {
choseTopicsImpl(
"tooShortWordsData.json", getContext().getString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class NotEnoughWordsInstrumentedTest : ChoseTopicsToastTest() {

@Test
@Test(timeout = 30000)
fun notEnoughWordsInstrumentedTest() {
choseTopicsImpl(
"notEnoughWords.json", getContext().getString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class SolveCrosswordAfterResetInstrumentedTest : SolveCrossword() {

@Test
@Test(timeout = 30000)
fun solveCrosswordAfterResetInstrumentedTest() {
crossword = generateCrossword()
loadFirstCrossword()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class SolveCrosswordInstrumentedTest : SolveCrossword() {

@Test
@Test(timeout = 30000)
fun solveCrosswordInstrumentedTest() {
crossword = generateCrossword()
loadFirstCrossword()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SolveCrosswordWithTipsInstrumentedTest {
return stars
}

@Test
@Test(timeout = 30000)
fun solveCrosswordWithTipsInstrumentedTest() {
val crossword = generateCrossword()
loadFirstCrossword()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class SolvedCrosswordAfterFillInstrumentedTest : SolveCrossword() {

@Test
@Test(timeout = 30000)
fun solvedCrosswordAfterFillInstrumentedTest() {
crossword = generateCrossword()
loadFirstCrossword()
Expand Down

0 comments on commit 6248aa2

Please sign in to comment.