aboutsummaryrefslogtreecommitdiff
path: root/src/internal/oserror/errors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/oserror/errors_test.go')
-rw-r--r--src/internal/oserror/errors_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal/oserror/errors_test.go b/src/internal/oserror/errors_test.go
index 6d6a56a0c7..50dd4678d4 100644
--- a/src/internal/oserror/errors_test.go
+++ b/src/internal/oserror/errors_test.go
@@ -34,7 +34,8 @@ func TestIsTimeout(t *testing.T) {
{true, ttError{timeout: true}},
{true, isError{os.ErrTimeout}},
{true, os.ErrTimeout},
- {true, fmt.Errorf("wrap: %w", os.ErrTimeout)},
+ // TODO: restore when %w is reimplemented
+ //{true, fmt.Errorf("wrap: %w", os.ErrTimeout)},
{false, ttError{timeout: false}},
{false, errors.New("error")},
} {
@@ -52,7 +53,8 @@ func TestIsTemporary(t *testing.T) {
{true, ttError{temporary: true}},
{true, isError{os.ErrTemporary}},
{true, os.ErrTemporary},
- {true, fmt.Errorf("wrap: %w", os.ErrTemporary)},
+ // TODO: restore when %w is reimplemented
+ //{true, fmt.Errorf("wrap: %w", os.ErrTemporary)},
{false, ttError{temporary: false}},
{false, errors.New("error")},
} {