Skip to content

Commit

Permalink
make tests more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Mar 26, 2021
1 parent c5bcc94 commit ea36d99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Runtime/LambdaRuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function testFromEnvironmentVariable()
};

putenv('AWS_LAMBDA_RUNTIME_API=foo');
putenv('BREF_TIMEOUT'); // unset
$this->assertEquals(0, $getTimeout(LambdaRuntime::fromEnvironmentVariable()));
$this->assertEquals(-1, $getTimeout(LambdaRuntime::fromEnvironmentVariable(-1)));
$this->assertEquals(0, $getTimeout(LambdaRuntime::fromEnvironmentVariable(0)));
Expand Down

0 comments on commit ea36d99

Please sign in to comment.