aboutsummaryrefslogtreecommitdiffstats
path: root/test/gun_http2_test.erl
blob: e5e1485f993e80d743f53076ca5709f3e3ebe33a (plain) (blame)
1
2
3
4
5
6
7
8
-module(gun_http2_test).
-include_lib("eunit/include/eunit.hrl").

handle_go_away_test() ->
	State = gun_http2:init(self(), socket, fake_transport, #{}),
	Data = <<0,0,22,7,0,0,0,0,0,0,0,0,0,0,0,0,11,116,111,111,95,109,97,110,121,95,112,105,110,103,115>>,
	{Result, _} = gun_http2:handle(Data, State, ?MODULE, undefined),
	?assertEqual(close, Result).