]> Cypherpunks repositories - gostls13.git/commit
os: fix wrong error msg from TestDoubleCloseError
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 7 Sep 2022 01:09:11 +0000 (18:09 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 8 Sep 2022 21:19:00 +0000 (21:19 +0000)
commit3585e9be670fc76e1bc4d4bfa452ee8798a127f2
tree1e34f6753ecd7432932edb6785635e5f5220a011
parentd75e91740a2048bba4c70e878a4cd3551e7b2273
os: fix wrong error msg from TestDoubleCloseError

When the type assertion fails, the test mistakenly prints the expected
(rather than the actual) type.

When the error string doesn't match, the text mistakenly prints the
original (rather than the converted) error (although there might not be
any difference in the output, the code looks wrong).

Fix both issues.

Change-Id: Ia7dd0632fc677f458fec25d899c46268a12f76e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/428916
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/os/os_test.go