Remove variables from the env if are already existing (#103)

This commit is contained in:
Krzysztof Wolski 2022-11-02 14:18:27 +01:00 committed by GitHub
parent 918956bdd6
commit 6e389db9be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,6 +122,10 @@ describe("APL", () => {
describe("isReady", () => { describe("isReady", () => {
it("Returns error with message mentioning missing configuration variables", async () => { it("Returns error with message mentioning missing configuration variables", async () => {
// Delete upstash variables if are already present in the env
delete process.env[UpstashAPLVariables.UPSTASH_TOKEN];
delete process.env[UpstashAPLVariables.UPSTASH_URL];
const apl = new UpstashAPL(); const apl = new UpstashAPL();
const result = await apl.isReady(); const result = await apl.isReady();