1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Use existing variable for GCS test server port.

Also fix incorrect separator comment.
This commit is contained in:
David Steele 2021-05-12 13:21:59 -04:00
parent 5464ac83d1
commit 7b71604def

View File

@ -313,7 +313,7 @@ testRun(void)
hrnCfgArgRawStrId(argList, cfgOptRepoType, STORAGE_GCS_TYPE);
hrnCfgArgRawZ(argList, cfgOptRepoPath, "/");
hrnCfgArgRawZ(argList, cfgOptRepoGcsBucket, TEST_BUCKET);
hrnCfgArgRawFmt(argList, cfgOptRepoGcsEndpoint, "%s:%u", strZ(hrnServerHost()), hrnServerPort(0));
hrnCfgArgRawFmt(argList, cfgOptRepoGcsEndpoint, "%s:%u", strZ(hrnServerHost()), testPort);
hrnCfgArgRawBool(argList, cfgOptRepoStorageVerifyTls, testContainer());
hrnCfgEnvRawZ(cfgOptRepoGcsKey, TEST_KEY_FILE);
harnessCfgLoad(cfgCmdArchivePush, argList);
@ -829,7 +829,7 @@ testRun(void)
"test3.txt {}\n",
"check");
// // -----------------------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------------------
TEST_TITLE("switch to token auth");
hrnServerScriptClose(service);