Skip to content

Commit

Permalink
use Skipf
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfitz committed May 17, 2014
1 parent f15ecfe commit 33c04b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions memcache/memcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 33c04b3

Please sign in to comment.