Skip to content

Commit 30d0ab0

Browse files
author
Minggang Wang
committed
Fix the protocol unit test failure
Fix #None
1 parent 248f2ee commit 30d0ab0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/nodejs/protocol/test-call-service.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ module.exports = function() {
139139

140140
if (response.op === 'status') {
141141
assert.deepStrictEqual(response.level, testData.opStatus);
142-
ws.close();
143-
done();
142+
if (testData.responseCount === 1) {
143+
ws.close();
144+
done();
145+
}
144146
}
145147
if (testData.expectedResponse && response.op === testData.expectedResponse.op) {
146148
assert.deepStrictEqual(response.result, testData.expectedResponse.result);

0 commit comments

Comments
 (0)