Skip to content

Commit

Permalink
undo whitespace changes to server/server_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto committed Nov 4, 2021
1 parent 56b8fa7 commit d35bdeb
Showing 1 changed file with 87 additions and 87 deletions.
174 changes: 87 additions & 87 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,93 +349,93 @@ func TestHTTPInstrumentationMetrics(t *testing.T) {
server.Shutdown()

require.NoError(t, testutil.GatherAndCompare(prometheus.DefaultGatherer, bytes.NewBufferString(`
# HELP inflight_requests Current number of inflight requests.
# TYPE inflight_requests gauge
inflight_requests{method="POST",route="sleep10"} 0
inflight_requests{method="GET",route="succeed"} 0
inflight_requests{method="GET",route="error500"} 0
# HELP request_message_bytes Size (in bytes) of messages received in the request.
# TYPE request_message_bytes histogram
request_message_bytes_bucket{method="GET",route="error500",le="1.048576e+06"} 1
request_message_bytes_bucket{method="GET",route="error500",le="2.62144e+06"} 1
request_message_bytes_bucket{method="GET",route="error500",le="5.24288e+06"} 1
request_message_bytes_bucket{method="GET",route="error500",le="1.048576e+07"} 1
request_message_bytes_bucket{method="GET",route="error500",le="2.62144e+07"} 1
request_message_bytes_bucket{method="GET",route="error500",le="5.24288e+07"} 1
request_message_bytes_bucket{method="GET",route="error500",le="1.048576e+08"} 1
request_message_bytes_bucket{method="GET",route="error500",le="2.62144e+08"} 1
request_message_bytes_bucket{method="GET",route="error500",le="+Inf"} 1
request_message_bytes_sum{method="GET",route="error500"} 0
request_message_bytes_count{method="GET",route="error500"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+06"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+06"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+06"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+07"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+07"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+07"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+08"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+08"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="+Inf"} 1
request_message_bytes_sum{method="POST",route="sleep10"} 4
request_message_bytes_count{method="POST",route="sleep10"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+06"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+06"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+06"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+07"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+07"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+07"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+08"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+08"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="+Inf"} 1
request_message_bytes_sum{method="GET",route="succeed"} 0
request_message_bytes_count{method="GET",route="succeed"} 1
# HELP response_message_bytes Size (in bytes) of messages sent in response.
# TYPE response_message_bytes histogram
response_message_bytes_bucket{method="GET",route="error500",le="1.048576e+06"} 1
response_message_bytes_bucket{method="GET",route="error500",le="2.62144e+06"} 1
response_message_bytes_bucket{method="GET",route="error500",le="5.24288e+06"} 1
response_message_bytes_bucket{method="GET",route="error500",le="1.048576e+07"} 1
response_message_bytes_bucket{method="GET",route="error500",le="2.62144e+07"} 1
response_message_bytes_bucket{method="GET",route="error500",le="5.24288e+07"} 1
response_message_bytes_bucket{method="GET",route="error500",le="1.048576e+08"} 1
response_message_bytes_bucket{method="GET",route="error500",le="2.62144e+08"} 1
response_message_bytes_bucket{method="GET",route="error500",le="+Inf"} 1
response_message_bytes_sum{method="GET",route="error500"} 0
response_message_bytes_count{method="GET",route="error500"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+06"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+06"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+06"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+07"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+07"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+07"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+08"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+08"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="+Inf"} 1
response_message_bytes_sum{method="POST",route="sleep10"} 0
response_message_bytes_count{method="POST",route="sleep10"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+06"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+06"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+06"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+07"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+07"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+07"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+08"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+08"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="+Inf"} 1
response_message_bytes_sum{method="GET",route="succeed"} 2
response_message_bytes_count{method="GET",route="succeed"} 1
# HELP tcp_connections Current number of accepted TCP connections.
# TYPE tcp_connections gauge
tcp_connections{protocol="http"} 0
tcp_connections{protocol="grpc"} 0
`), "request_message_bytes", "response_message_bytes", "inflight_requests", "tcp_connections"))
# HELP inflight_requests Current number of inflight requests.
# TYPE inflight_requests gauge
inflight_requests{method="POST",route="sleep10"} 0
inflight_requests{method="GET",route="succeed"} 0
inflight_requests{method="GET",route="error500"} 0
# HELP request_message_bytes Size (in bytes) of messages received in the request.
# TYPE request_message_bytes histogram
request_message_bytes_bucket{method="GET",route="error500",le="1.048576e+06"} 1
request_message_bytes_bucket{method="GET",route="error500",le="2.62144e+06"} 1
request_message_bytes_bucket{method="GET",route="error500",le="5.24288e+06"} 1
request_message_bytes_bucket{method="GET",route="error500",le="1.048576e+07"} 1
request_message_bytes_bucket{method="GET",route="error500",le="2.62144e+07"} 1
request_message_bytes_bucket{method="GET",route="error500",le="5.24288e+07"} 1
request_message_bytes_bucket{method="GET",route="error500",le="1.048576e+08"} 1
request_message_bytes_bucket{method="GET",route="error500",le="2.62144e+08"} 1
request_message_bytes_bucket{method="GET",route="error500",le="+Inf"} 1
request_message_bytes_sum{method="GET",route="error500"} 0
request_message_bytes_count{method="GET",route="error500"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+06"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+06"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+06"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+07"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+07"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+07"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+08"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+08"} 1
request_message_bytes_bucket{method="POST",route="sleep10",le="+Inf"} 1
request_message_bytes_sum{method="POST",route="sleep10"} 4
request_message_bytes_count{method="POST",route="sleep10"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+06"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+06"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+06"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+07"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+07"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+07"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+08"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+08"} 1
request_message_bytes_bucket{method="GET",route="succeed",le="+Inf"} 1
request_message_bytes_sum{method="GET",route="succeed"} 0
request_message_bytes_count{method="GET",route="succeed"} 1
# HELP response_message_bytes Size (in bytes) of messages sent in response.
# TYPE response_message_bytes histogram
response_message_bytes_bucket{method="GET",route="error500",le="1.048576e+06"} 1
response_message_bytes_bucket{method="GET",route="error500",le="2.62144e+06"} 1
response_message_bytes_bucket{method="GET",route="error500",le="5.24288e+06"} 1
response_message_bytes_bucket{method="GET",route="error500",le="1.048576e+07"} 1
response_message_bytes_bucket{method="GET",route="error500",le="2.62144e+07"} 1
response_message_bytes_bucket{method="GET",route="error500",le="5.24288e+07"} 1
response_message_bytes_bucket{method="GET",route="error500",le="1.048576e+08"} 1
response_message_bytes_bucket{method="GET",route="error500",le="2.62144e+08"} 1
response_message_bytes_bucket{method="GET",route="error500",le="+Inf"} 1
response_message_bytes_sum{method="GET",route="error500"} 0
response_message_bytes_count{method="GET",route="error500"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+06"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+06"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+06"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+07"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+07"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="5.24288e+07"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="1.048576e+08"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="2.62144e+08"} 1
response_message_bytes_bucket{method="POST",route="sleep10",le="+Inf"} 1
response_message_bytes_sum{method="POST",route="sleep10"} 0
response_message_bytes_count{method="POST",route="sleep10"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+06"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+06"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+06"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+07"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+07"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="5.24288e+07"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="1.048576e+08"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="2.62144e+08"} 1
response_message_bytes_bucket{method="GET",route="succeed",le="+Inf"} 1
response_message_bytes_sum{method="GET",route="succeed"} 2
response_message_bytes_count{method="GET",route="succeed"} 1
# HELP tcp_connections Current number of accepted TCP connections.
# TYPE tcp_connections gauge
tcp_connections{protocol="http"} 0
tcp_connections{protocol="grpc"} 0
`), "request_message_bytes", "response_message_bytes", "inflight_requests", "tcp_connections"))
}

func TestRunReturnsError(t *testing.T) {
Expand Down

0 comments on commit d35bdeb

Please sign in to comment.