فهرست منبع

errdefs: remove gotest.tools dependency

It was only used in a single test, and was not using any of
the gotest.tools features, so let's remove it as dependency.

With this, the package has no external dependencies (only stdlib).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 سال پیش
والد
کامیت
b6ba2a4f75
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      errdefs/http_helpers_test.go

+ 3 - 3
errdefs/http_helpers_test.go

@@ -4,8 +4,6 @@ import (
 	"fmt"
 	"net/http"
 	"testing"
-
-	"gotest.tools/v3/assert"
 )
 
 func TestFromStatusCode(t *testing.T) {
@@ -86,7 +84,9 @@ func TestFromStatusCode(t *testing.T) {
 	for _, tc := range testCases {
 		t.Run(http.StatusText(tc.status), func(t *testing.T) {
 			err := FromStatusCode(tc.err, tc.status)
-			assert.Check(t, tc.check(err), "unexpected error-type %T", err)
+			if !tc.check(err) {
+				t.Errorf("unexpected error-type %T", err)
+			}
 		})
 	}
 }