Просмотр исходного кода

Merge branch 'fix/http-tests-get-mtu' of git://github.com/soundrop/cowboy

Loïc Hoguin 11 лет назад
Родитель
Сommit
39caf34fe3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/http_SUITE.erl

+ 1 - 1
test/http_SUITE.erl

@@ -520,7 +520,7 @@ chunked_response(Config) ->
 %% Check if sending requests whose size is around the MTU breaks something.
 echo_body(Config) ->
 	Client = ?config(client, Config),
-	{ok, [{mtu, MTU}]} = inet:ifget("lo", [mtu]),
+	MTU = ct_helper:get_loopback_mtu(),
 	_ = [begin
 		Body = list_to_binary(lists:duplicate(Size, $a)),
 		{ok, Client2} = cowboy_client:request(<<"POST">>,