-
Notifications
You must be signed in to change notification settings - Fork 219
Modules fail tests #3392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Modules fail tests #3392
Conversation
auto retCode = server.startModules(config); | ||
EXPECT_TRUE(retCode.ok()) << retCode.string(); | ||
serverGuard = std::make_unique<ServerShutdownGuard>(server); | ||
ASSERT_EQ(server.getModule(ovms::SERVABLES_CONFIG_MANAGER_MODULE_NAME)->getState(), ovms::ModuleState::INITIALIZED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid unit test crashes, we do have too much of those recently
ASSERT_EQ(server.getModule(ovms::SERVABLES_CONFIG_MANAGER_MODULE_NAME)->getState(), ovms::ModuleState::INITIALIZED); | |
ASSERT_NE(server.getModule(ovms::SERVABLES_CONFIG_MANAGER_MODULE_NAME), nullptr); | |
ASSERT_EQ(server.getModule(ovms::SERVABLES_CONFIG_MANAGER_MODULE_NAME)->getState(), ovms::ModuleState::INITIALIZED); |
src/test/pull_hf_model_test.cpp
Outdated
} | ||
}; | ||
|
||
TEST(ServerModeTests, ListModelError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What error?
src/test/pull_hf_model_test.cpp
Outdated
ASSERT_EQ(server.getModule(ovms::HF_MODEL_PULL_MODULE_NAME), nullptr); | ||
} | ||
|
||
TEST(ServerModeTests, ModifyConfigError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEST(ServerModeTests, ModifyConfigError) { | |
TEST(ServerModulesBehaviorTests, ModifyConfigModeWithMissingParamsError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
🛠 Summary
JIRACVS-169007
Adding unit tests for fast RC fix.
🧪 Checklist
``