Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure calling 'fail()' is not caught by the Exception handler #6089

Merged
merged 3 commits into from
May 20, 2022

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented May 18, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other : test which should fail may not fail

Content

Ensure tests which should fail are actually failing.

Motivation and context

Make test fail if they have to.

A quick local local test confirm that the test was not failing when fail() is called in a try block and Throwable are caught.

Screenshots / GIFs

NA

Tests

  • Run android tests

There are 2 failing tests, not related to this PR: testUnwedging() and trustKeyBackupVersionWithRecoveryKeyTest()

image

Tested devices

  • Physical
  • Emulator
  • OS version(s):

@bmarty bmarty requested review from BillCarsonFr, a team, Florian14 and Claire1817 and removed request for a team and Claire1817 May 18, 2022 11:09
@github-actions
Copy link

github-actions bot commented May 18, 2022

Unit Test Results

122 files  ±0  122 suites  ±0   2m 14s ⏱️ -1s
205 tests ±0  205 ✔️ ±0  0 💤 ±0  0 ±0 
690 runs  ±0  690 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 99d4bbe. ± Comparison against base commit f730378.

♻️ This comment has been updated with latest results.

Copy link
Member

@BillCarsonFr BillCarsonFr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bmarty bmarty merged commit b547a49 into develop May 20, 2022
@bmarty bmarty deleted the feature/bma/real_fail branch May 20, 2022 08:33
@github-actions
Copy link

Matrix SDK

Integration Tests Results:

  • [org.matrix.android.sdk.session]
    = passed=20 failures=0 errors=0 skipped=3
  • [org.matrix.android.sdk.account]
    = passed=3 failures=0 errors=0 skipped=2
  • [org.matrix.android.sdk.internal]
    = passed=51 failures=2 errors=0 skipped=1
  • [org.matrix.android.sdk.ordering]
    = passed=16 failures=0 errors=0 skipped=0
  • [org.matrix.android.sdk.PermalinkParserTest]
    = passed=2 failures=0 errors=0 skipped=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants