From 89ef28fb9bd30d78ecb6505e47cf2ad0627b25d4 Mon Sep 17 00:00:00 2001 From: Xing Xing Date: Thu, 11 Apr 2013 20:16:41 +0800 Subject: [PATCH] tweaking --- gearman_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gearman_test.go b/gearman_test.go index 4c132bb..79081d4 100644 --- a/gearman_test.go +++ b/gearman_test.go @@ -31,7 +31,7 @@ func ToUpper(job *worker.Job) ([]byte, error) { } func Sleep(job *worker.Job) ([]byte, error) { - time.Sleep(time.Second) + time.Sleep(time.Second * 5) return nil, nil } @@ -82,6 +82,7 @@ func TestJobs(t *testing.T) { { handle := c.DoBg("Sleep", nil, client.JOB_NORMAL) + time.Sleep(time.Second) status := c.Status(handle) if !status.Known {