clean up websocket tests
This commit is contained in:
Родитель
fc41ff372d
Коммит
248b605cbb
|
@ -6408,7 +6408,6 @@ LibraryManager.library = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (var i = 0; i < info.sendQueue.length; i++) {
|
for (var i = 0; i < info.sendQueue.length; i++) {
|
||||||
console.log('sending ' + info.sendQueue[i]);
|
|
||||||
info.socket.send(window.btoa(info.sendQueue[i]));
|
info.socket.send(window.btoa(info.sendQueue[i]));
|
||||||
}
|
}
|
||||||
info.sendQueue = [];
|
info.sendQueue = [];
|
||||||
|
|
|
@ -8738,7 +8738,7 @@ elif 'browser' in str(sys.argv):
|
||||||
with self.WebsockHarness(8992, server_func):
|
with self.WebsockHarness(8992, server_func):
|
||||||
with self.WebsockHarness(8994, no_server=True):
|
with self.WebsockHarness(8994, no_server=True):
|
||||||
Popen(['python', EMCC, path_from_root('tests', 'websockets_bi_side.c'), '-o', 'side.html']).communicate()
|
Popen(['python', EMCC, path_from_root('tests', 'websockets_bi_side.c'), '-o', 'side.html']).communicate()
|
||||||
self.btest('websockets_bi.c', expected='2499') # XXX result is incorrect
|
self.btest('websockets_bi.c', expected='2499')
|
||||||
finally:
|
finally:
|
||||||
self.clean_pids()
|
self.clean_pids()
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче