aboutsummaryrefslogblamecommitdiffstats
path: root/test/gun_http2_test.erl
blob: 1dd4d68534aa22de82f25dc66e9c7fc0219709ba (plain) (tree)
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),
	?assertEqual(close, Result).