Skip to content

Commit 588889a

Browse files
Merge pull request #27 from KarstenSchnitter/test-fix
Synchronize SetUp and Assertion
2 parents 58135c3 + d71a1a5 commit 588889a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cf-java-logging-support-servlet/src/test/java/com/sap/hcp/cf/logging/servlet/filter/LoggingAsyncContextImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void savesAndRestoresThreadMDC() throws Exception {
131131
public void run() {
132132
MDC.put("initial-key", "initial-value");
133133
}
134-
});
134+
}).get();
135135
Map<String, String> requestContextMap = new HashMap<>();
136136
testedContext.start(putAllContextMap(requestContextMap));
137137
Map<String, String> finalContextMap = new HashMap<>();
@@ -141,7 +141,7 @@ public void run() {
141141
public void run() {
142142
finalContextMap.putAll(MDC.getCopyOfContextMap());
143143
}
144-
});
144+
}).get();
145145

146146
assertThat(requestContextMap.entrySet(), is(empty()));
147147
assertThat(finalContextMap, hasEntry("initial-key", "initial-value"));

0 commit comments

Comments
 (0)