Files
MaxScale/maxscale-system-test/mxs118.cpp
Markus Mäkelä d11c78ad80 Format all sources with Uncrustify
Formatted all sources and manually tuned some files to make the code look
neater.
2018-09-10 13:22:49 +03:00

28 lines
670 B
C++

/**
* @file mxs118.cpp bug mxs118 regression case ("Two monitors loaded at the same time result into not working
* installation")
*
* - Configure two monitors using same backend serves
* - try to connect to maxscale
* - check logs for warning
*/
#include <iostream>
#include <unistd.h>
#include "testconnections.h"
using namespace std;
int main(int argc, char* argv[])
{
TestConnections* Test = new TestConnections(argc, argv);
Test->set_timeout(10);
Test->maxscales->connect_maxscale(0);
Test->check_log_err(0, (char*) "Multiple monitors are monitoring server", true);
int rval = Test->global_result;
delete Test;
return rval;
}