summaryrefslogtreecommitdiff
path: root/js/test/Ice/timeout/Client.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-04-11 23:41:09 +0200
committerJose <jose@zeroc.com>2017-04-11 23:41:09 +0200
commitc46e19eee014a3bc94dd174ee64b0c48c5d9e493 (patch)
tree34b8f25dfeb6e75fd40a3178e51ca7fa833f09df /js/test/Ice/timeout/Client.js
parentJavaScript CHANGELOG updates (diff)
downloadice-c46e19eee014a3bc94dd174ee64b0c48c5d9e493.tar.bz2
ice-c46e19eee014a3bc94dd174ee64b0c48c5d9e493.tar.xz
ice-c46e19eee014a3bc94dd174ee64b0c48c5d9e493.zip
Remove JavaScript Ice.Buffer.createNative helper method
Diffstat (limited to 'js/test/Ice/timeout/Client.js')
-rw-r--r--js/test/Ice/timeout/Client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/test/Ice/timeout/Client.js b/js/test/Ice/timeout/Client.js
index f35c735e5cc..6c1cfedaed0 100644
--- a/js/test/Ice/timeout/Client.js
+++ b/js/test/Ice/timeout/Client.js
@@ -78,7 +78,7 @@
out.writeLine("ok");
out.write("testing connection timeout... ");
to = Test.TimeoutPrx.uncheckedCast(obj.ice_timeout(100 * mult));
- seq = Ice.Buffer.createNative(new Array(10000000));
+ seq = new Uint8Array(10000000);
return timeout.holdAdapter(1000 * mult);
}
).then(() => to.sendData(seq) // Expect TimeoutException
@@ -94,7 +94,7 @@
to = Test.TimeoutPrx.uncheckedCast(obj.ice_timeout(30000 * mult));
return timeout.holdAdapter(500 * mult);
}
- ).then(() => to.sendData(Ice.Buffer.createNative(new Array(5 * 1024))) // Expect success.
+ ).then(() => to.sendData(new Uint8Array(5 * 1024)) // Expect success.
).then(() =>
{
out.writeLine("ok");