Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-soltesz committed Aug 5, 2019
1 parent 4c3a05d commit 2b5077c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndt5/singleserving/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (ps *plainServer) ServeOnce(ctx context.Context) (protocol.MeasuredConnecti
// timeouts) after this returns.
func ListenPlain(direction string) (ndt.SingleMeasurementServer, error) {
ndt5metrics.MeasurementServerStart.WithLabelValues(string(ndt.Plain)).Inc()
// Simulate "code" for raw connections to account for all tests.
// The "code" label is required for the TestCount metric. The code value is hardcoded.
metrics.TestCount.MustCurryWith(prometheus.Labels{"direction": direction, "code": "200"})
// Start listening right away to ensure that subsequent connections succeed.
s := &plainServer{}
Expand Down

0 comments on commit 2b5077c

Please sign in to comment.