Skip to content

Commit

Permalink
Brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal committed Sep 26, 2020
1 parent a95c49d commit 9a938bc
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ void newThreadStartsWithRoot() throws Exception {
try (Scope ignored = context.makeCurrent()) {
assertThat(Context.current().getValue(ANIMAL)).isEqualTo("cat");
AtomicReference<Context> current = new AtomicReference<>();
Thread thread =
new Thread(
() -> {
current.set(Context.current());
});
Thread thread = new Thread(() -> current.set(Context.current()));
thread.start();
thread.join();
assertThat(current.get()).isEqualTo(Context.root());
Expand Down

0 comments on commit 9a938bc

Please sign in to comment.