From 8facf743dc891cd9d09f3928259aa6b110d11605 Mon Sep 17 00:00:00 2001 From: yangyang Date: Fri, 2 Feb 2024 15:38:26 +0800 Subject: [PATCH] fix test Signed-off-by: yangyang --- internal/dag/policy_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dag/policy_test.go b/internal/dag/policy_test.go index 25ceaa508c5..836c2b54dfa 100644 --- a/internal/dag/policy_test.go +++ b/internal/dag/policy_test.go @@ -1480,10 +1480,10 @@ func TestOutlierDetectionPolicy(t *testing.T) { t.Run(name, func(t *testing.T) { got, gotErr := outlierDetectionPolicy(nil, tc.in) if tc.wantErr { - assert.Error(t, gotErr) + require.Error(t, gotErr) } else { assert.Equal(t, tc.want, got) - assert.NoError(t, gotErr) + require.NoError(t, gotErr) } }) }