Skip to content

Commit 9d5c4b2

Browse files
committed
feat: fixed error in PerplexityExceptions test, added GitHub actions secrets integration into CI
1 parent 2493326 commit 9d5c4b2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ jobs:
3939
run: cmake --build build -- -j$(sysctl -n hw.logicalcpu)
4040

4141
- name: Run tests
42+
env:
43+
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }}
4244
run: ctest --test-dir build --output-on-failure

tests/perplexity_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ TEST(PerplexityUtils, RateLimiterBasic) {
4545

4646
// Test: Client Exclusions
4747
TEST(PerplexityExceptions, AuthAndNetwork) {
48-
EXPECT_THROW(AuthenticationError("fail"), AuthenticationError);
49-
EXPECT_THROW(NetworkError("fail", 400), NetworkError);
50-
EXPECT_THROW(RateLimitError("fail", 5), RateLimitError);
48+
EXPECT_THROW(throw AuthenticationError("fail"), AuthenticationError);
49+
EXPECT_THROW(throw NetworkError("fail", 400), NetworkError);
50+
EXPECT_THROW(throw RateLimitError("fail", 5), RateLimitError);
5151
}
5252

5353
TEST(PerplexityIntegration, RealRequest) {

0 commit comments

Comments
 (0)