This is an automated email from the ASF dual-hosted git repository.

sunyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 6498ed62b chore: enhance lago test setup (#12868)
6498ed62b is described below

commit 6498ed62b5353ade37851b712b7ab8010b6a5cfe
Author: Shreemaan Abhishek <[email protected]>
AuthorDate: Thu Jan 8 15:03:43 2026 +0545

    chore: enhance lago test setup (#12868)
    
    Signed-off-by: Abhishek Choudhary <[email protected]>
---
 .github/workflows/build.yml | 4 ++--
 t/APISIX.pm                 | 2 +-
 t/plugin/lago.spec.mts      | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f4a6e92bd..a4898117b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -32,8 +32,8 @@ jobs:
           - lua-resty-worker-events
           - lua-resty-events
         test_dir:
-          - t/plugin/[a-k]*
-          - t/stream-plugin t/plugin/[l-z]*
+          - t/plugin/[a-k]*.t
+          - t/stream-plugin t/plugin/[l-z]*.t
           - t/admin t/cli t/config-center-yaml t/control t/core t/debug 
t/discovery t/error_page t/http3/admin t/misc
           - t/node t/pubsub t/router t/script t/secret t/stream-node t/utils 
t/wasm t/xds-library t/xrpc
 
diff --git a/t/APISIX.pm b/t/APISIX.pm
index d80e4162a..40bf590a1 100644
--- a/t/APISIX.pm
+++ b/t/APISIX.pm
@@ -383,7 +383,7 @@ _EOC_
                     -- timeout one second before the actual timeout to allow 
shell.run to finish and collect the stdout/stderr
                     local ok, stdout, stderr, reason, status = shell.run([[ 
$exec_snippet ]], $stdin, @{[($timeout-1)*1000]}, $max_size)
                     if not ok then
-                        ngx.log(ngx.WARN, "failed to execute the script with 
status: " .. (status or "nil ") .. ", reason: " .. (reason or "nil ") .. ", 
stderr: " .. (stderr or "nil "))
+                        ngx.log(ngx.WARN, "failed to execute the script with 
status: " .. (status or "nil ") .. ", reason: " .. (reason or "nil ") .. ", 
stdout: " .. (stdout or "nil ") .. ", stderr: " .. (stderr or "nil "))
                         ngx.print("stdout: ", stdout)
                         ngx.print("stderr: ", stderr)
                         return
diff --git a/t/plugin/lago.spec.mts b/t/plugin/lago.spec.mts
index 101ee60be..c71080e6e 100644
--- a/t/plugin/lago.spec.mts
+++ b/t/plugin/lago.spec.mts
@@ -316,7 +316,7 @@ describe('Plugin - Lago', () => {
       }),
     ).resolves.not.toThrow()
     console.log(`[${new Date().toLocaleTimeString()}] created consumer`)
-  });
+  }, 5 * 1000);
 
   it('call API (without key)', async () => {
     console.log(`[${new Date().toLocaleTimeString()}] calling API without key`)

Reply via email to