Skip to content

Commit 973e241

Browse files
committed
test: fix flaky test-zmq-packages.mjs
PR-URL: #288 Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 783a1c9 commit 973e241

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

test/agents/test-zmq-packages.mjs

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,28 @@ import { TestPlayground } from '../common/nsolid-zmq-agent/index.js';
9494
// required: false
9595
// },
9696
// {
97-
// path: '/home/sgimeno/nodesource/nsolid/test/common/nsolid-zmq-agent/node_modules/underscore',
98-
// name: 'underscore',
99-
// version: '1.13.6',
100-
// main: 'underscore-umd.js',
101-
// dependencies: [],
102-
// required: false
103-
// },
104-
// {
10597
// path: '/home/sgimeno/nodesource/nsolid/test/common/nsolid-zmq-agent/node_modules/zeromq',
10698
// name: 'zeromq',
10799
// version: '5.3.1',
108100
// main: 'index',
109101
// dependencies: [ '../nan', '../node-gyp-build' ],
110102
// required: false
103+
// },
104+
// {
105+
// path: '/home/sgimeno/nodesource/nsolid/test/common/nsolid-zmq-agent/node_modules/zeromq/node_modules/nan',
106+
// name: 'nan',
107+
// version: '2.22.2',
108+
// main: 'include_dirs.js',
109+
// dependencies: [],
110+
// required: false
111+
// },
112+
// {
113+
// path: '/home/sgimeno/[]/node_modules/zeromq/node_modules/node-gyp-build',
114+
// name: 'node-gyp-build',
115+
// version: '4.8.4',
116+
// main: 'index.js',
117+
// dependencies: [],
118+
// required: false
111119
// }
112120
// ]
113121
// },
@@ -117,13 +125,13 @@ import { TestPlayground } from '../common/nsolid-zmq-agent/index.js';
117125

118126
const expectedPackageNames = [
119127
'base64-js', 'base85', 'buffer', 'ieee754', 'ip-address', 'jsbn', 'lodash',
120-
'nan', 'node-gyp-build', 'sprintf-js', 'underscore', 'zeromq',
128+
'nan', 'node-gyp-build', 'sprintf-js', 'zeromq', 'nan', 'node-gyp-build',
121129
];
122130

123-
const expectedPackagesMajorVersions = ['1', '3', '6', '1', '5', '1', '4', '2', '4', '1', '1', '5'];
131+
const expectedPackagesMajorVersions = ['1', '3', '6', '1', '5', '1', '4', '2', '4', '1', '1', '5', '2', '4'];
124132
const expectedPackagesMains = [
125133
'index.js', 'lib/base85.js', 'index.js', 'index.js', 'ip-address.js', 'index.js', 'lodash.js',
126-
'include_dirs.js', 'index.js', 'src/sprintf.js', 'underscore-umd.js', 'index',
134+
'include_dirs.js', 'index.js', 'src/sprintf.js', 'index.js', 'index', 'index.js', 'index.js',
127135
];
128136

129137
function checkPackagesData(packages, requestId, agentId) {

0 commit comments

Comments
 (0)