Skip to content

Fix race condition in httprs test

Stan Hu requested to merge sh-fix-httprs-race-condition into master

The So(server, ShouldNotBeNil) call in the httprs test attempts to print a string representation of the server, but this is racy because the reconnection state is initialized in a Goroutine. httptest.NewServer() always returns a valid value, so we can drop this test.

Relates to #285 (moved)

Edited by Stan Hu

Merge request reports