From 33c04b3472f5c88644529dda3dc290b018f28233 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 17 May 2014 15:54:02 -0700 Subject: [PATCH] use Skipf --- memcache/memcache_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/memcache/memcache_test.go b/memcache/memcache_test.go index e4b9d3c0..fa3965e1 100644 --- a/memcache/memcache_test.go +++ b/memcache/memcache_test.go @@ -32,8 +32,7 @@ const testServer = "localhost:11211" func setup(t *testing.T) bool { c, err := net.Dial("tcp", testServer) if err != nil { - t.Logf("skipping test; no server running at %s", testServer) - return false + t.Skipf("skipping test; no server running at %s", testServer) } c.Write([]byte("flush_all\r\n")) c.Close() @@ -52,7 +51,7 @@ func TestUnixSocket(t *testing.T) { sock := fmt.Sprintf("/tmp/test-gomemcache-%d.sock", os.Getpid()) cmd := exec.Command("memcached", "-s", sock) if err := cmd.Start(); err != nil { - t.Logf("skipping test; couldn't find memcached") + t.Skipf("skipping test; couldn't find memcached") return } defer cmd.Wait()