Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 729228c

Browse files
author
zhangyihui1
committed
add js publish eachOther cases
1 parent ebf2aef commit 729228c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/p2ptest/test-ci.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe('P2P JS SDK', function () {
3030
}
3131
}
3232
}
33+
deferred.reject();
3334
}, timeout);
3435
var interval = setInterval(function () {
3536
if (latch.call(latch)) {
@@ -1123,7 +1124,7 @@ describe('P2P JS SDK', function () {
11231124
var actorUser1_data = undefined;
11241125
var actorUser2_datasender = undefined;
11251126
var actorUser2_data = undefined;
1126-
1127+
11271128
afterEach(function () {
11281129
Q('afterEach')
11291130
.then(function () {
@@ -1300,7 +1301,7 @@ describe('P2P JS SDK', function () {
13001301
return waitsFor(function () {
13011302
//check action
13021303
return actorUser2.request["publish_success"] === 1;
1303-
}, userName2 + "check action: publish", waitInterval)
1304+
}, undefined, waitInterval)
13041305
})
13051306
.then(function () {
13061307
return waitsFor(function () {
@@ -1318,6 +1319,8 @@ describe('P2P JS SDK', function () {
13181319
//wait lock
13191320
return detection === true;
13201321
}, userName1 + " remote stream is good", waitInterval)
1322+
}).catch(function () {
1323+
console.log('catch error');
13211324
})
13221325
.then(function () {
13231326
console.log('test end');

0 commit comments

Comments
 (0)