Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkorth committed Jan 4, 2016
1 parent 4de8e54 commit b3e2ecb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ public void paypalButtonIsNotShownIfPayPalIsNotSupported() {
}

@Test(timeout = 30000)
@FlakyTest(tolerance = 3)
public void backButtonExitsTheActivityIfThereAreNoPaymentMethodNoncesToSelectFrom() {
Activity activity = getActivity(new TestClientTokenBuilder().build());
waitForAddPaymentFormHeader();
onAddPaymentFormHeader().check(matches(isDisplayed()));
assertFalse(activity.isFinishing());

getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
getInstrumentation().waitForIdleSync();

assertTrue(activity.isFinishing());
}
Expand Down

0 comments on commit b3e2ecb

Please sign in to comment.