Skip to content

Commit e2f0da6

Browse files
committed
Get tests to compile on 2.12
1 parent efb56e0 commit e2f0da6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

akka-http-tests/src/test/scala/akka/http/scaladsl/server/directives/MdcLoggingDirectivesSpec.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ class MdcLoggingDirectivesSpec extends RoutingSpec {
5757
"include the entries in the LoggingEvents" in {
5858
val buf = ListBuffer.empty[Logging.Info2]
5959
val filter = EventFilter.custom {
60-
case e: Logging.Info2 => buf.append(e).nonEmpty
61-
case _ => false
60+
case e: Logging.Info2 =>
61+
buf.append(e)
62+
true
63+
case _ => false
6264
}
6365
filter.intercept {
6466
Get() ~> withMdcEntries("user_id" -> "1234", "request_id" -> "abcd") {

0 commit comments

Comments
 (0)