I'm testing Open Zepplins crowdsale code: https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/CappedCrowdsale.test.js
After I compile and run
truffle test it works fine, but then the second time I run
truffle test (even without changing the code at all) I get this error:
Error: VM Exception while processing transaction: revert at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:43303:16)
I can resolve the problem by shutting down testrpc and
truffle migrate --reset again, but its pretty annoying to have to do that before each test.
Any idea how I can fix this? Thanks!