From 1ba48c58b1462fb9d9d8c4d9a43878679aea8eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 3 Oct 2019 15:42:58 +0200 Subject: Make stream_error early_error reasons consistent Now both HTTP/1.1 and HTTP/2 follow the documented format. HTTP/1.1 was including an extra element containing the StreamID before, which was unnecessary because it is also given as argument to the callback. HTTP/2 early_error will now include headers in its PartialReq. --- test/metrics_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/metrics_SUITE.erl') diff --git a/test/metrics_SUITE.erl b/test/metrics_SUITE.erl index d9ff7ea..971dd16 100644 --- a/test/metrics_SUITE.erl +++ b/test/metrics_SUITE.erl @@ -314,7 +314,7 @@ do_early_error(Config) -> ref := _, pid := From, streamid := 1, - reason := {stream_error, 1, protocol_error, _}, + reason := {stream_error, protocol_error, _}, partial_req := #{}, resp_status := 400, resp_headers := ExpectedRespHeaders, -- cgit v1.2.3