Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajindal1 committed Oct 25, 2024
1 parent cb686e5 commit cd268b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/c_api_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ TEST(CAPITests, GetOutputCAPI) {
generator->GenerateNextToken();
}

TEST(CAPITests, SetUnsetTerminate) {
TEST(CAPITests, SetTerminate) {
#if TEST_PHI2

auto GeneratorSetTerminateCall = [](OgaGenerator* generator) {
generator->SetUnsetTerminate(true);
generator->SetTerminate();

Check failure on line 292 in test/c_api_tests.cpp

View workflow job for this annotation

GitHub Actions / windows-cuda-x64-build

'SetTerminate': is not a member of 'OgaGenerator'

Check failure on line 292 in test/c_api_tests.cpp

View workflow job for this annotation

GitHub Actions / windows-cuda-x64-build

'__this': is not a member of 'OgaGenerator'
};

auto GenerateOutput = [](OgaGenerator* generator, std::unique_ptr<OgaTokenizerStream> tokenizer_stream) {
Expand Down Expand Up @@ -326,7 +326,7 @@ TEST(CAPITests, SetUnsetTerminate) {
th.join(); // Wait for each thread to finish
}
EXPECT_EQ(generator->IsSessionTerminated(), true);
generator->SetUnsetTerminate(false);
generator->UnsetTerminate();

Check failure on line 329 in test/c_api_tests.cpp

View workflow job for this annotation

GitHub Actions / windows-cuda-x64-build

'UnsetTerminate': is not a member of 'OgaGenerator'
EXPECT_EQ(generator->IsSessionTerminated(), false);
#endif
}
Expand Down

0 comments on commit cd268b2

Please sign in to comment.