summaryrefslogtreecommitdiff
path: root/src/pkg/http/client_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/client_test.go')
-rw-r--r--src/pkg/http/client_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go
index 76aad7e81..6787825d8 100644
--- a/src/pkg/http/client_test.go
+++ b/src/pkg/http/client_test.go
@@ -7,20 +7,20 @@
package http
import (
- "io/ioutil";
- "strings";
- "testing";
+ "io/ioutil"
+ "strings"
+ "testing"
)
func TestClient(t *testing.T) {
// TODO: add a proper test suite. Current test merely verifies that
// we can retrieve the Google robots.txt file.
- r, _, err := Get("http://www.google.com/robots.txt");
- var b []byte;
+ r, _, err := Get("http://www.google.com/robots.txt")
+ var b []byte
if err == nil {
- b, err = ioutil.ReadAll(r.Body);
- r.Body.Close();
+ b, err = ioutil.ReadAll(r.Body)
+ r.Body.Close()
}
if err != nil {
t.Error(err)