- Fix tests for new rrset-roundrobin default.

This commit is contained in:
George Thessalonikefs 2020-04-21 22:02:56 +02:00
parent 6320776b25
commit 584c2cf804
3 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,7 @@
21 April 2020: George
- Change default value for 'rrset-roundrobin' to yes.
- Fix tests for new rrset-roundrobin default.
20 April 2020: Wouter
- Fix #222: --enable-rpath, fails to rpath python lib.

View file

@ -274,6 +274,8 @@ setup_config(FILE* in, int* lineno, int* pass_argc, char* pass_argv[])
fprintf(cfg, " pidfile: \"\"\n");
fprintf(cfg, " val-log-level: 2\n");
fprintf(cfg, "remote-control: control-enable: no\n");
/* some basic settings to facilitate testing */
fprintf(cfg, "server: rrset-roundrobin: no\n");
while(fgets(line, MAX_LINE_LEN-1, in)) {
parse = line;
(*lineno)++;

View file

@ -867,6 +867,8 @@ main(int argc, char* argv[])
printf("\tperforms unit tests.\n");
return 1;
}
/* Disable roundrobin for the unit tests */
RRSET_ROUNDROBIN = 0;
#ifdef USE_LIBEVENT
printf("Start of %s+libevent unit test.\n", PACKAGE_STRING);
#else