aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Aleksandr Razumov <ar@cydev.ru> 2016-05-04 13:22:35 +0300
committerGravatar Aleksandr Razumov <ar@cydev.ru> 2016-05-04 13:22:35 +0300
commit0f298a79696589a80c1b37e3b82fdf564c0cdd3a (patch)
tree987161a26f7985482d087c6de03663ec8e40d660
parentfix tests on Windows (diff)
downloadfasthttp-0f298a79696589a80c1b37e3b82fdf564c0cdd3a.tar.gz
fasthttp-0f298a79696589a80c1b37e3b82fdf564c0cdd3a.tar.bz2
fasthttp-0f298a79696589a80c1b37e3b82fdf564c0cdd3a.zip
fix tests on unix
-rw-r--r--client_unix_test.go (renamed from client_test_unix.go)5
-rw-r--r--uri_unix.go2
2 files changed, 5 insertions, 2 deletions
diff --git a/client_test_unix.go b/client_unix_test.go
index 24b2dba..071c899 100644
--- a/client_test_unix.go
+++ b/client_unix_test.go
@@ -2,6 +2,11 @@
package fasthttp
+import (
+ "sync"
+ "testing"
+)
+
func TestHostClientGet(t *testing.T) {
addr := "./TestHostClientGet.unix"
s := startEchoServer(t, "unix", addr)
diff --git a/uri_unix.go b/uri_unix.go
index 631712a..469709d 100644
--- a/uri_unix.go
+++ b/uri_unix.go
@@ -2,8 +2,6 @@
package fasthttp
-import "bytes"
-
func addLeadingSlash(dst, src []byte) []byte {
// add leading slash for unix paths