From ff2cfe0adbc7f10738980d82b7970b4d512b3307 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Mon, 1 Feb 2016 11:30:16 -0500 Subject: [PATCH 1/2] Tests: Run tests with Node 4 and 0.12 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index f759c00..80a5abe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: node_js node_js: - '0.10' + - '0.12' + - '4' install: - npm install after_success: From c5274e650723d374df5fc6ba27214c64ca88e827 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Mon, 1 Feb 2016 12:07:43 -0500 Subject: [PATCH 2/2] Tests: Fix tests for Node.js 4 --- test/integration/server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/server.js b/test/integration/server.js index 4fb0cb8..9d9eb07 100644 --- a/test/integration/server.js +++ b/test/integration/server.js @@ -1271,12 +1271,13 @@ describe('Wallet service', function() { var requestPubKey = reqPrivKey.toPublicKey(); var xPrivKey = TestData.copayers[0].xPrivKey_44H_0H_0H; - var sig = helpers.signRequestPubKey(requestPubKey, xPrivKey); + var requestPubKeyStr = requestPubKey.toString(); + var sig = helpers.signRequestPubKey(requestPubKeyStr, xPrivKey); var copayerId = Model.Copayer._xPubToCopayerId(TestData.copayers[0].xPubKey_44H_0H_0H); opts = { copayerId: copayerId, - requestPubKey: requestPubKey, + requestPubKey: requestPubKeyStr, signature: sig, }; ws = new WalletService();