Skip to content

Commit

Permalink
Updates tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmuvi-stripe committed Jun 23, 2023
1 parent 56dbd4e commit 7b3a4d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal class ErrorsKtTest {
throw retryException()
}
}
assertThat(testResult.exceptionOrNull()!!).isInstanceOf(TimeoutException::class.java)
assertThat(testResult.exceptionOrNull()!!).isInstanceOf(PollingReachedMaxRetriesException::class.java)
}

private fun retryException() = APIException(statusCode = HttpURLConnection.HTTP_ACCEPTED)
Expand Down Expand Up @@ -81,6 +81,6 @@ internal class ErrorsKtTest {
if (counter == 3) true else throw retryException()
}
}
assertThat(testResult.exceptionOrNull()!!).isInstanceOf(TimeoutException::class.java)
assertThat(testResult.exceptionOrNull()!!).isInstanceOf(PollingReachedMaxRetriesException::class.java)
}
}

0 comments on commit 7b3a4d5

Please sign in to comment.