Skip to content

Commit 1a0b08e

Browse files
author
Zach Banks
committed
FIX: Fix non-deterministic tests
1 parent ee6f258 commit 1a0b08e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/src/historical_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,8 @@ TEST(HistoricalBuilderTests, TestSetKeyFromEnv) {
803803
}
804804

805805
TEST(HistoricalBuilderTests, TestSetKeyFromEnvMissing) {
806+
ASSERT_EQ(::unsetenv("DATABENTO_API_KEY"), 0)
807+
<< "Failed to set environment variable";
806808
ASSERT_THROW(databento::HistoricalBuilder().SetKeyFromEnv().Build(),
807809
Exception);
808810
}

0 commit comments

Comments
 (0)