Commit 1db46aa5 by Francisco Giordano Committed by GitHub

Merge pull request #292 from jakub-wojciechowski/test/pausable

Test if unpause prevents events allowed in paused state
parents c991eaf9 6eac8597
......@@ -62,4 +62,18 @@ contract('Pausable', function(accounts) {
assert.equal(count0, 1);
});
it('should prevent drastic measure after pause is over', async function() {
let Pausable = await PausableMock.new();
await Pausable.pause();
await Pausable.unpause();
try {
await Pausable.drasticMeasure();
} catch(error) {
assertJump(error);
}
const drasticMeasureTaken = await Pausable.drasticMeasureTaken();
assert.isFalse(drasticMeasureTaken);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment