Skip to content

Commit

Permalink
Try new port
Browse files Browse the repository at this point in the history
  • Loading branch information
eatonphil committed Jul 10, 2023
1 parent eb2b832 commit f42ffe2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions desktop/panel/http.test.js
Expand Up @@ -32,7 +32,7 @@ const baseline = JSON.parse(
);

const USERDATA_FILES = ['json', 'xlsx', 'csv', 'parquet', 'jsonl', 'cjson'];
const PORT = '9799';
const PORT = '9802';
const PORT2 = '9798';

if (!inPath('httpmirror')) {
Expand Down Expand Up @@ -79,16 +79,16 @@ beforeAll(async () => {
await new Promise((r) => setTimeout(r, 1000));
}

[server, server2].forEach((server) => {
server.stdout.on('data', (data) => {
[server, server2].forEach((s) => {
s.stdout.on('data', (data) => {
console.log(data.toString());
});

server.stderr.on('data', (data) => {
s.stderr.on('data', (data) => {
console.warn(data.toString());
});

server.on('close', function(code) {
s.on('close', function(code) {
console.log(`Server exited with ${code}.`);
});
});
Expand Down Expand Up @@ -124,7 +124,7 @@ for (const subprocessName of RUNNERS) {
'',
new HTTPConnectorInfo(
'',
'http://localhost:9799/testdata/allformats/unknown'
'http://localhost:'+PORT+'/testdata/allformats/unknown'
)
);

Expand Down Expand Up @@ -161,7 +161,7 @@ for (const subprocessName of RUNNERS) {
'',
new HTTPConnectorInfo(
'',
'http://localhost:9799/testdata/allformats/userdata.' + userdataFileType
'http://localhost:'+PORT+'/testdata/allformats/userdata.' + userdataFileType
)
);

Expand Down Expand Up @@ -212,7 +212,7 @@ for (const subprocessName of RUNNERS) {
'',
new HTTPConnectorInfo(
'',
'http://localhost:9799/testdata/logs/' + t.filename
'http://localhost:'+PORT+'/testdata/logs/' + t.filename
)
);
hp.http.http.contentTypeInfo = t.contentTypeInfo;
Expand Down Expand Up @@ -254,7 +254,7 @@ for (const subprocessName of RUNNERS) {
'',
new HTTPConnectorInfo(
'',
'http://localhost:9799/testdata/allformats/unknown',
'http://localhost:'+PORT+'/testdata/allformats/unknown',
[{ name: 'X-Test', value: 'OK' }]
)
);
Expand Down Expand Up @@ -289,7 +289,7 @@ for (const subprocessName of RUNNERS) {
const hp = new HTTPPanelInfo(
null,
'',
new HTTPConnectorInfo('', 'http://localhost:9799{{DM_getPanel("0")}}')
new HTTPConnectorInfo('', 'http://localhost:'+PORT+'{{DM_getPanel("0")}}')
);

const panels = [lp, hp];
Expand Down Expand Up @@ -358,7 +358,7 @@ for (const subprocessName of RUNNERS) {
'',
new HTTPConnectorInfo(
'',
'http://localhost:9799/testdata/allformats/unknown'
'http://localhost:'+PORT+'/testdata/allformats/unknown'
)
);
hp.serverId = server.id;
Expand Down

0 comments on commit f42ffe2

Please sign in to comment.