Skip to content

Commit

Permalink
Merge #2763 into 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Apr 4, 2023
2 parents 5fc9ab9 + a9fe467 commit 10c127a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2021 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2017-2023 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -41,6 +41,7 @@
import io.netty.channel.FileRegion;
import io.netty.channel.embedded.EmbeddedChannel;
import io.netty.handler.codec.MessageToMessageEncoder;
import io.netty.handler.codec.UnsupportedMessageTypeException;
import io.netty.handler.ssl.SslContext;
import io.netty.handler.ssl.SslContextBuilder;
import io.netty.handler.ssl.SslHandler;
Expand Down Expand Up @@ -244,6 +245,8 @@ public NettyOutbound withConnection(Consumer<? super Connection> withConnection)
.endsWith("End of File");

assertThat(f.isSuccess()).isFalse();
assertThat(f.cause()).isNotNull()
.isInstanceOf(UnsupportedMessageTypeException.class);
assertThat(channel.finishAndReleaseAll()).isTrue();
}

Expand Down

0 comments on commit 10c127a

Please sign in to comment.