mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-01 06:46:48 -04:00
test context cancel error type
This commit is contained in:
+2
-2
@@ -53,8 +53,8 @@ func TestDialListenerGetsCancelled(t *testing.T) {
|
||||
time.Sleep(time.Millisecond * 30)
|
||||
cancel()
|
||||
err = <-ch
|
||||
if err == nil {
|
||||
t.Fatalf("expected ErrTimeout, got %v", err)
|
||||
if err != context.Canceled {
|
||||
t.Fatalf("expected context.Canceled, got %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user