From d7c7c69a13868546c26c3e5096fca09304a6e182 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 22:12:21 +0900 Subject: container/dispatcher: check simple test errors via reflect Again, avoids the errors package concealing unexpected behaviours. Signed-off-by: Ophestra --- container/dispatcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/dispatcher_test.go') diff --git a/container/dispatcher_test.go b/container/dispatcher_test.go index 74d77f46..69d698ac 100644 --- a/container/dispatcher_test.go +++ b/container/dispatcher_test.go @@ -115,7 +115,7 @@ func checkSimple(t *testing.T, fname string, testCases []simpleTestCase) { t.Run(tc.name, func(t *testing.T) { defer handleExitStub() k := &kstub{t: t, want: tc.want, wg: new(sync.WaitGroup)} - if err := tc.f(k); !errors.Is(err, tc.wantErr) { + if err := tc.f(k); !reflect.DeepEqual(err, tc.wantErr) { t.Errorf("%s: error = %v, want %v", fname, err, tc.wantErr) } k.handleIncomplete(func(k *kstub) { -- cgit v1.3.1