Skip to content

Commit fab4a6e

Browse files
authored
throw if AWS_REGION environment variable is missing (#158)
1 parent 095ff84 commit fab4a6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/runtime_tests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ struct LambdaRuntimeTest : public ::testing::Test {
4444
Aws::Client::ClientConfiguration config;
4545
config.requestTimeoutMs = REQUEST_TIMEOUT;
4646
config.region = Aws::Environment::GetEnv("AWS_REGION");
47+
if (config.region.empty()) {
48+
throw std::invalid_argument("environment variable AWS_REGION not set");
49+
}
4750
return config;
4851
}
4952

0 commit comments

Comments
 (0)