mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-19 01:18:54 +01:00
api/test: always randomize ciphers and override envs
This commit is contained in:
parent
d79950b15f
commit
fcb5023c23
1 changed files with 4 additions and 7 deletions
|
@ -73,6 +73,10 @@ if (env.externalProxy) {
|
|||
setGlobalDispatcher(new ProxyAgent(env.externalProxy));
|
||||
}
|
||||
|
||||
env.streamLifespan = 10000;
|
||||
env.apiURL = 'http://x/';
|
||||
randomizeCiphers();
|
||||
|
||||
const action = process.argv[2];
|
||||
switch (action) {
|
||||
case "get-services":
|
||||
|
@ -95,9 +99,6 @@ switch (action) {
|
|||
break;
|
||||
|
||||
case "run-tests-for":
|
||||
env.streamLifespan = 10000;
|
||||
env.apiURL = 'http://x/';
|
||||
randomizeCiphers();
|
||||
|
||||
try {
|
||||
const { softFails } = await runTestsFor(process.argv[3]);
|
||||
|
@ -113,10 +114,6 @@ switch (action) {
|
|||
const maxHeaderLen = Object.keys(services).reduce((n, v) => v.length > n ? v.length : n, 0);
|
||||
const failCounters = {};
|
||||
|
||||
env.streamLifespan = 10000;
|
||||
env.apiURL = 'http://x/';
|
||||
randomizeCiphers();
|
||||
|
||||
for (const service in services) {
|
||||
printHeader(service, maxHeaderLen);
|
||||
const { fails, softFails } = await runTestsFor(service);
|
||||
|
|
Loading…
Reference in a new issue