[Pkg-javascript-commits] [node-diffie-hellman] 31/88: just check gen 5 in node 11

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:19:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-diffie-hellman.

commit 1a28a06d85deadc41e761fbd3d355e22e66eee8b
Author: Calvin Metcalf <calvin.metcalf at state.ma.us>
Date:   Sun Nov 16 15:26:40 2014 -0500

    just check gen 5 in node 11
---
 test.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/test.js b/test.js
index 31f852a..91f3aff 100644
--- a/test.js
+++ b/test.js
@@ -5,7 +5,9 @@ var myCrypto = require('./');
 var mods = [
    'modp1', 'modp2', 'modp5', 'modp14', 'modp15', 'modp16', 'modp17', 'modp18'
 ];
-
+function isNode10() {
+  return process.version && process.version.split('.').length === 3 && parseInt(process.version.split('.')[1], 10) <= 10;
+}
  var lens = [
   64, 65, 128, 384, 512, 1024,
   192, 224, 256];
@@ -88,10 +90,12 @@ test('create primes gen 2', function (t) {
 	var f = bylen(t, new Buffer([2]));
 	lens2.forEach(f);
 });
-test('create primes gen 5', function (t) {
-	var f = bylen(t, new Buffer([5]));
-	lens2.forEach(f);
-});
+if (!isNode10()) {
+	test('create primes gen 5', function (t) {
+		var f = bylen(t, new Buffer([5]));
+		lens2.forEach(f);
+	});
+}
 
 test('create primes other way', function (t) {
 		var f = bylen2(t);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-diffie-hellman.git



More information about the Pkg-javascript-commits mailing list