aboutsummaryrefslogtreecommitdiff
path: root/lib/http
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-06-17 14:37:25 +0700
committerShulhan <m.shulhan@gmail.com>2020-06-17 14:37:25 +0700
commit343f2bb76eb170e95701d378ddde0e9e4d9f16fa (patch)
tree663a18a3db7decb5349ce395752b700d734a0356 /lib/http
parent301f387075c5615a2d65bbfe08da75a43fd0f601 (diff)
downloadpakakeh.go-343f2bb76eb170e95701d378ddde0e9e4d9f16fa.tar.xz
http: fix possible test race on error variable in goroutine
Diffstat (limited to 'lib/http')
-rw-r--r--lib/http/http_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http/http_test.go b/lib/http/http_test.go
index 9e31a662..a15cb873 100644
--- a/lib/http/http_test.go
+++ b/lib/http/http_test.go
@@ -63,7 +63,7 @@ func TestMain(m *testing.M) {
}
go func() {
- err = testServer.Start()
+ err := testServer.Start()
if err != nil {
log.Fatal(err)
}