From b1d2093f553600b8558ff8e96e6b794eb978f35d Mon Sep 17 00:00:00 2001 From: Ronald Petty Date: Mon, 27 Apr 2020 11:05:55 -0700 Subject: [PATCH] Update gin_integration_test.go squash you dang spaces!!! --- gin_integration_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gin_integration_test.go b/gin_integration_test.go index baad1fca..5f508c70 100644 --- a/gin_integration_test.go +++ b/gin_integration_test.go @@ -151,8 +151,8 @@ func TestUnixSocket(t *testing.T) { defer os.Remove(unixTestSocket) go func() { - router.GET("/example", func(c *Context) { c.String(http.StatusOK, "it worked") }) - assert.NoError(t, router.RunUnix(unixTestSocket)) + router.GET("/example", func(c *Context) { c.String(http.StatusOK, "it worked") }) + assert.NoError(t, router.RunUnix(unixTestSocket)) }() // have to wait for the goroutine to start and run the server // otherwise the main thread will complete @@ -165,7 +165,7 @@ func TestUnixSocket(t *testing.T) { scanner := bufio.NewScanner(c) var response string for scanner.Scan() { - response += scanner.Text() + response += scanner.Text() } assert.Contains(t, response, "HTTP/1.0 200", "should get a 200") assert.Contains(t, response, "it worked", "resp body should match")