aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/stub/errors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'container/stub/errors_test.go')
-rw-r--r--container/stub/errors_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/container/stub/errors_test.go b/container/stub/errors_test.go
index 4d9252de..604841ac 100644
--- a/container/stub/errors_test.go
+++ b/container/stub/errors_test.go
@@ -9,7 +9,10 @@ import (
)
func TestUniqueError(t *testing.T) {
+ t.Parallel()
+
t.Run("format", func(t *testing.T) {
+ t.Parallel()
want := "unique error 2989 injected by the test suite"
if got := stub.UniqueError(0xbad).Error(); got != want {
t.Errorf("Error: %q, want %q", got, want)
@@ -17,13 +20,17 @@ func TestUniqueError(t *testing.T) {
})
t.Run("is", func(t *testing.T) {
+ t.Parallel()
+
t.Run("type", func(t *testing.T) {
+ t.Parallel()
if errors.Is(stub.UniqueError(0), syscall.ENOTRECOVERABLE) {
t.Error("Is: unexpected true")
}
})
t.Run("val", func(t *testing.T) {
+ t.Parallel()
if errors.Is(stub.UniqueError(0), stub.UniqueError(1)) {
t.Error("Is: unexpected true")
}