From 6c340a65271820ef8852b6573f3819a141fe5c6f Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 29 Mar 2016 16:53:40 +0200 Subject: [PATCH] chainpad testing = true, reject non-compliant messages --- www/common/chainpad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/chainpad.js b/www/common/chainpad.js index c5854c7cf..b2a81138c 100644 --- a/www/common/chainpad.js +++ b/www/common/chainpad.js @@ -372,7 +372,7 @@ var random = Patch.random = function (doc, opCount) { var PARANOIA = module.exports.PARANOIA = false; /* throw errors over non-compliant messages which would otherwise be treated as invalid */ -var TESTING = module.exports.TESTING = false; +var TESTING = module.exports.TESTING = true; var assert = module.exports.assert = function (expr) { if (!expr) { throw new Error("Failed assertion"); }