diff --git a/scripts/test-total-usage-limit.js b/scripts/test-total-usage-limit.js index c5c50bdd..c084ccfd 100644 --- a/scripts/test-total-usage-limit.js +++ b/scripts/test-total-usage-limit.js @@ -111,7 +111,7 @@ async function main() { }) const keyId = newKey.id - const apiKey = newKey.apiKey + const { apiKey } = newKey console.log(`➕ Created test API key ${keyId} with total usage limit $${totalLimit}`) @@ -145,6 +145,8 @@ main().catch(async (error) => { console.error('❌ Total usage limit test failed:', error) try { await redis.disconnect() - } catch (_) {} + } catch (_) { + // Ignore disconnect errors during cleanup + } process.exitCode = 1 })