From c8059fb1c01f5cfb23ed5419dfcc7dd5d823d678 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 24 Feb 2026 12:59:11 +0000 Subject: [PATCH] fix(test): await async getEnvVarOnDemand calls in test setup --- test/test.node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.node.ts b/test/test.node.ts index 0458095..8f53a1a 100644 --- a/test/test.node.ts +++ b/test/test.node.ts @@ -7,8 +7,8 @@ const testQenv = new qenv.Qenv('./', '.nogit/'); let gitlabClient: GitLabClient; tap.test('should create a GitLabClient instance', async () => { - const baseUrl = testQenv.getEnvVarOnDemand('GITLAB_BASE_URL') || 'https://gitlab.com'; - const token = testQenv.getEnvVarOnDemand('GITLAB_TOKEN') || ''; + const baseUrl = (await testQenv.getEnvVarOnDemand('GITLAB_BASE_URL')) || 'https://gitlab.com'; + const token = (await testQenv.getEnvVarOnDemand('GITLAB_TOKEN')) || ''; gitlabClient = new GitLabClient(baseUrl, token); expect(gitlabClient).toBeInstanceOf(GitLabClient); });