]> Cypherpunks repositories - gostls13.git/commit
os: check for ErrNotExist instead of ErrExist in TestNonPollable
authorBryan C. Mills <bcmills@google.com>
Wed, 19 Apr 2023 13:56:45 +0000 (09:56 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 19 Apr 2023 14:12:49 +0000 (14:12 +0000)
commit8c2ff88c61630c566ce1346d6d6eff973e6736d7
treec3d4529dc3912c3f0a98069c2d5c5ee83c20dcd1
parentd93f02010cbaa83916eecb4fb23dfc4153694dc0
os: check for ErrNotExist instead of ErrExist in TestNonPollable

An apparent typo in CL 484837 caused the test to check for ErrExist
instead of ErrNotExist when opening /dev/net/tun for read. That causes
the test to fail on platforms where /dev/net/ton does not exist,
such as on the darwin-amd64-longtest builder.

Updates #59545.

Change-Id: I9402ce0dba11ab459674e8358ae9a8b97eabc8d2
Reviewed-on: https://go-review.googlesource.com/c/go/+/486255
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Commit-Queue: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/os/fifo_test.go