From 2752109095aa2d9f1707e394675fa3515727aa4c Mon Sep 17 00:00:00 2001 From: Han-Ya-Jun <1581532052@qq.com> Date: Mon, 25 Dec 2023 18:19:37 +0800 Subject: [PATCH] fix: fix test --- src/apisix/tests/bk-components/test-bkauth.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/apisix/tests/bk-components/test-bkauth.lua b/src/apisix/tests/bk-components/test-bkauth.lua index 8fe1f4a..8c2ae52 100644 --- a/src/apisix/tests/bk-components/test-bkauth.lua +++ b/src/apisix/tests/bk-components/test-bkauth.lua @@ -80,7 +80,6 @@ describe( assert.is_false(result.existed) assert.is_false(result.verified) assert.is_nil(err) - assert.is_true(core.string.has_prefix(err, "request_id")) end ) @@ -201,7 +200,6 @@ describe( } ) assert.is_nil(err) - assert.is_true(core.string.has_prefix(err, "request_id")) end ) @@ -338,6 +336,7 @@ describe( local result, err = bkauth.verify_access_token("fake-token") assert.is_nil(result) assert.is_true(core.string.has_prefix(err, "bkauth error message: error")) + assert.is_true(core.string.has_prefix(err, "request_id")) end )