Skip to content

Commit b10483c

Browse files
authored
http2: reduce severity for more Akka IO unhandled message events in tests (#4074)
Hoppefully, these spurious messages will further be reduced by akka/akka-core#31231.
1 parent 0364e89 commit b10483c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

akka-http2-support/src/test/scala/akka/http/impl/engine/http2/Http2PersistentClientSpec.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ abstract class Http2PersistentClientSpec(tls: Boolean) extends AkkaSpecWithMater
4444
akka.http.client.http2.completion-timeout=100ms
4545
""") with ScalaFutures {
4646
override def failOnSevereMessages: Boolean = true
47+
private val notSevere = Set("ChannelReadable", "WriteAck")
4748
override protected def isSevere(event: Logging.LogEvent): Boolean =
4849
event.level <= Logging.WarningLevel &&
4950
// fix for https://github.com/akka/akka-http/issues/3732 / https://github.com/akka/akka/issues/29330
50-
!event.message.toString.contains("ChannelReadable")
51+
!notSevere.exists(cand => event.message.toString.contains(cand))
5152

5253
case class RequestId(id: String) extends RequestResponseAssociation
5354
val requestIdAttr = AttributeKey[RequestId]("requestId")

0 commit comments

Comments
 (0)