worker_test: assert exact error value in EventDialFailed
This commit is contained in:
+1
-1
@@ -664,7 +664,7 @@ func TestWorkerSession(t *testing.T) {
|
|||||||
case e := <-events:
|
case e := <-events:
|
||||||
return e.Kind == EventDialFailed &&
|
return e.Kind == EventDialFailed &&
|
||||||
e.ID == w.id &&
|
e.ID == w.id &&
|
||||||
e.Err != nil &&
|
e.Err == dialErr &&
|
||||||
!e.At.IsZero()
|
!e.At.IsZero()
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user