You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Remove extraneous calls to cfgOptionValid() in unit tests.
This commit is contained in:
@@ -138,7 +138,6 @@ testRun(void)
|
||||
|
||||
// Recurse
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
cfgOptionValidSet(cfgOptRecurse, true);
|
||||
cfgOptionSet(cfgOptRecurse, cfgSourceParam, VARBOOL(true));
|
||||
|
||||
output = bufNew(0);
|
||||
@@ -148,7 +147,6 @@ testRun(void)
|
||||
|
||||
// Filter
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
cfgOptionValidSet(cfgOptFilter, true);
|
||||
cfgOptionSet(cfgOptFilter, cfgSourceParam, VARSTRDEF("^aaa$"));
|
||||
|
||||
output = bufNew(0);
|
||||
|
||||
@@ -36,13 +36,10 @@ testRun(void)
|
||||
|
||||
// Set type since we'll be running local and remote tests here
|
||||
cfgOptionSet(cfgOptRemoteType, cfgSourceParam, VARSTRDEF("repo"));
|
||||
cfgOptionValidSet(cfgOptRemoteType, true);
|
||||
|
||||
// Set pg settings so we can run both db and backup remotes
|
||||
cfgOptionSet(cfgOptPgHost, cfgSourceParam, VARSTRDEF("localhost"));
|
||||
cfgOptionValidSet(cfgOptPgHost, true);
|
||||
cfgOptionSet(cfgOptPgPath, cfgSourceParam, VARSTR(strNewFmt("%s/pg", testPath())));
|
||||
cfgOptionValidSet(cfgOptPgPath, true);
|
||||
|
||||
// Start a protocol server to test the remote protocol
|
||||
Buffer *serverRead = bufNew(8192);
|
||||
@@ -215,7 +212,6 @@ testRun(void)
|
||||
// Do these tests against pg for coverage. We're not really going to get a pg remote here because the remote for this host
|
||||
// id has already been created. This will just test that the pg storage is selected to provide coverage.
|
||||
cfgOptionSet(cfgOptRemoteType, cfgSourceParam, VARSTRDEF("pg"));
|
||||
cfgOptionValidSet(cfgOptRemoteType, true);
|
||||
|
||||
paramList = varLstNew();
|
||||
varLstAdd(paramList, varNewStrZ(hrnReplaceKey("{[path]}/repo/test")));
|
||||
|
||||
Reference in New Issue
Block a user