Skip to content

Commit

Permalink
test: wait for session scenarios to send session before crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Feb 25, 2019
1 parent 6181d68 commit 4185692
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public void run() {

if (metadata == null || !metadata.equals("non-crashy")) {
Bugsnag.getClient().startSession();
try {
Thread.sleep(10); // simulate async request
} catch (InterruptedException ignored) {
ignored.printStackTrace();
}
crash(0);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public void run() {
if (metadata == null || !metadata.equals("non-crashy")) {
Bugsnag.getClient().startSession();
Bugsnag.getClient().stopSession();
try {
Thread.sleep(10); // simulate async request
} catch (InterruptedException ignored) {
ignored.printStackTrace();
}
crash(0);
}
}
Expand Down

0 comments on commit 4185692

Please sign in to comment.