Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Jan 15, 2024
1 parent e216950 commit 0db6078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ortools/linear_solver/xpress_interface_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ TEST(XpressInterface, setStringControls) {
{"COMPUTEEXECSERVICE", XPRS_COMPUTEEXECSERVICE, "default_value"},
};
for (const auto& [paramString, control, paramValue] : params) {
UNITTEST_INIT_MIP();
MPSolver solver("XPRESS_MIP", MPSolver::XPRESS_MIXED_INTEGER_PROGRAMMING);
XPRSGetter getter(&solver);
std::string xpressParamString = paramString + " " + paramValue;
solver.SetSolverSpecificParametersAsString(xpressParamString);
EXPECT_EQ(paramValue, getter.getStringControl(control));
Expand Down

0 comments on commit 0db6078

Please sign in to comment.