aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/dispatcher_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-29 22:12:21 +0900
committerOphestra <cat@gensokyo.uk>2025-08-29 22:12:21 +0900
commitd7c7c69a13868546c26c3e5096fca09304a6e182 (patch)
tree0fb383109f03be3024e0d140454ee866572f393b /container/dispatcher_test.go
parent50972096cd8bffd9b17dbdf656ec34c48edb8f86 (diff)
container/dispatcher: check simple test errors via reflect
Again, avoids the errors package concealing unexpected behaviours. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/dispatcher_test.go')
-rw-r--r--container/dispatcher_test.go2
1 files changed, 1 insertions, 1 deletions
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) {