summaryrefslogtreecommitdiff
path: root/js/test/Ice/hold/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/hold/Client.js')
-rw-r--r--js/test/Ice/hold/Client.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/test/Ice/hold/Client.js b/js/test/Ice/hold/Client.js
index fd648040976..02055490d93 100644
--- a/js/test/Ice/hold/Client.js
+++ b/js/test/Ice/hold/Client.js
@@ -49,7 +49,7 @@
}
catch(err)
{
- p.fail(err);
+ p.reject(err);
throw err;
}
}
@@ -82,7 +82,7 @@
out.write("changing state between active and hold rapidly... ");
var i;
- var r = new Ice.Promise().succeed();
+ var r = Ice.Promise.resolve();
/*jshint -W083 */
// Ignore this since we do not use i and
// have only a small number of iterations
@@ -307,12 +307,13 @@
function()
{
out.writeLine("ok");
- p.succeed();
+ p.resolve();
},
function(ex)
{
+ console.log(ex);
out.writeLine("failed!");
- p.fail(ex);
+ p.reject(ex);
});
return p;
};