Skip to content

Commit

Permalink
fix rtinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dkalinowski committed Dec 20, 2024
1 parent f3cedd1 commit 094da53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modelinstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ enum : unsigned int {
} // namespace

namespace ov {
struct Meta; // pure fwd declaration in getRTInfo
class Meta; // pure fwd declaration in getRTInfo
}

namespace ovms {
Expand Down
12 changes: 12 additions & 0 deletions src/test/embeddingsnode_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ class EmbeddingsExtensionTest : public ::testing::Test {
ovms::HttpResponseComponents responseComponents;

static void SetUpTestSuite() {
#ifdef _WIN32
GTEST_SKIP() << "Skipping test because we have no custom extension built for Windows";
#endif
std::string port = "9173";
ovms::Server& server = ovms::Server::instance();
std::string configPath = getGenericFullPathForSrcTest("/ovms/src/test/embeddings/config_embeddings.json");
Expand All @@ -324,20 +327,29 @@ class EmbeddingsExtensionTest : public ::testing::Test {
}

void SetUp() {
#ifdef _WIN32
GTEST_SKIP() << "Skipping test because we have no custom extension built for Windows";
#endif
writer = std::make_shared<MockedServerRequestInterface>();
ovms::Server& server = ovms::Server::instance();
handler = std::make_unique<ovms::HttpRestApiHandler>(server, 5);
ASSERT_EQ(handler->parseRequestComponents(comp, "POST", endpointEmbeddings, headers), ovms::StatusCode::OK);
}

static void TearDownTestSuite() {
#ifdef _WIN32
GTEST_SKIP() << "Skipping test because we have no custom extension built for Windows";
#endif
ovms::Server& server = ovms::Server::instance();
server.setShutdownRequest(1);
t->join();
server.setShutdownRequest(0);
}

void TearDown() {
#ifdef _WIN32
GTEST_SKIP() << "Skipping test because we have no custom extension built for Windows";
#endif
handler.reset();
}
};
Expand Down

0 comments on commit 094da53

Please sign in to comment.