Fix test_modulecmd
The test created a mariadbmonitor without a valid configuration. The test worked before because only the base monitor configuration was checked.
This commit is contained in:
parent
6b14479b6c
commit
cc3891a43c
@ -407,8 +407,10 @@ int test_domain_matching(const char* actual_module,
|
||||
/** Create a monitor */
|
||||
char* libdir = MXS_STRDUP_A("../../modules/monitor/mariadbmon/");
|
||||
set_libdir(libdir);
|
||||
MXS_CONFIG_PARAMETER empty;
|
||||
MonitorManager::create_monitor(name, actual_module, &empty);
|
||||
MXS_CONFIG_PARAMETER params;
|
||||
params.set(CN_USER, "dummy");
|
||||
params.set(CN_PASSWORD, "dummy");
|
||||
MonitorManager::create_monitor(name, actual_module, ¶ms);
|
||||
|
||||
const MODULECMD* cmd;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user