diff options
author | Aleksandr Razumov <ernado@ya.ru> | 2016-05-05 16:39:31 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-05-05 16:39:31 +0300 |
commit | 7304bdd09c6c12e6c25714f68c121256957bc367 (patch) | |
tree | b1e6356101e9f9ad318a2a9ef938846f5079976e /client_unix_test.go | |
parent | simplified build tags in client_unix_test.go according to the comment at http... (diff) | |
download | fasthttp-7304bdd09c6c12e6c25714f68c121256957bc367.tar.gz fasthttp-7304bdd09c6c12e6c25714f68c121256957bc367.tar.bz2 fasthttp-7304bdd09c6c12e6c25714f68c121256957bc367.zip |
explicitly skip tests for platforms that not support unix sockets (#90)
Diffstat (limited to 'client_unix_test.go')
-rw-r--r-- | client_unix_test.go | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/client_unix_test.go b/client_unix_test.go deleted file mode 100644 index 9eafee9..0000000 --- a/client_unix_test.go +++ /dev/null @@ -1,44 +0,0 @@ -// +build !windows - -package fasthttp - -import ( - "sync" - "testing" -) - -func TestHostClientGet(t *testing.T) { - addr := "./TestHostClientGet.unix" - s := startEchoServer(t, "unix", addr) - defer s.Stop() - c := createEchoClient(t, "unix", addr) - - testHostClientGet(t, c, 100) -} - -func TestHostClientPost(t *testing.T) { - addr := "./TestHostClientPost.unix" - s := startEchoServer(t, "unix", addr) - defer s.Stop() - c := createEchoClient(t, "unix", addr) - - testHostClientPost(t, c, 100) -} - -func TestHostClientConcurrent(t *testing.T) { - addr := "./TestHostClientConcurrent.unix" - s := startEchoServer(t, "unix", addr) - defer s.Stop() - c := createEchoClient(t, "unix", addr) - - var wg sync.WaitGroup - for i := 0; i < 10; i++ { - wg.Add(1) - go func() { - defer wg.Done() - testHostClientGet(t, c, 30) - testHostClientPost(t, c, 10) - }() - } - wg.Wait() -} |