Skip to content

Commit ec08258

Browse files
committed
Fix test case
1 parent 03ac331 commit ec08258

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/js/test/webrtc_adaptor.test.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ describe("WebRTCAdaptor", function() {
400400
await adaptor.updateAudioTrack(stream, null, null);
401401
});
402402

403-
it("testSoundMeter", function(done) {
404-
403+
it.only("testSoundMeter", function(done) {
404+
this.timeout(5000);
405405

406406
var adaptor = new WebRTCAdaptor({
407407
websocketURL: "ws://localhost",
@@ -413,8 +413,7 @@ describe("WebRTCAdaptor", function() {
413413
});
414414

415415
adaptor.initialize().then(() => {
416-
audioLevelCalled = false;
417-
audioLevel = 0;
416+
418417
adaptor.enableAudioLevelForLocalStream((level) => {
419418
console.log(level);
420419
if (level > 0) {

0 commit comments

Comments
 (0)