Bug 1214518 - B2G RIL: wait for emulator pending command before calling finish(). r=echen

--HG--
extra : commitid : KD3dGA1IRve
This commit is contained in:
Jessica Jong 2015-10-15 10:51:14 +08:00
Родитель 07ae537809
Коммит 94ae9b0eda
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -302,7 +302,7 @@ function cleanUp() {
function startTestBase(aTestCaseMain) {
Promise.resolve()
.then(aTestCaseMain)
.then(finish, function(aException) {
.then(cleanUp, function(aException) {
ok(false, "promise rejects during test: " + aException);
cleanUp();
});