From ae716c04945e4d6916b5d99d7a408d66436d4cdc Mon Sep 17 00:00:00 2001 From: Xing Xing Date: Tue, 24 Dec 2013 16:37:20 +0800 Subject: [PATCH] fixed global test-case --- gearman_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gearman_test.go b/gearman_test.go index b8d41d4..fbb6dd6 100644 --- a/gearman_test.go +++ b/gearman_test.go @@ -54,6 +54,10 @@ func TestJobs(t *testing.T) { w.ErrorHandler = func(e error) { t.Error(e) } + if err := w.Ready(); err != nil { + t.Error(err) + return + } go w.Work() t.Log("Worker is running...")