When following along with the tests covered in section 6, lecture 139, but using more up-to-date smart contract code, you may get the error 'VM Exception while processing transaction: out of gas' when you run the tests.
To resolve this error and get passing tests, change the gas amount from 1000000 (1 million) to a higher value, e.g. 1500000 (1.5 million).
Some stackoverflow responses I found when trying to troubleshoot the error suggested setting a value of 3000000 (3 million) but I found 1.5 million to work fine for me.
When following along with the tests covered in section 6, lecture 139, but using more up-to-date smart contract code, you may get the error 'VM Exception while processing transaction: out of gas' when you run the tests.
To resolve this error and get passing tests, change the gas amount from 1000000 (1 million) to a higher value, e.g. 1500000 (1.5 million).
Some stackoverflow responses I found when trying to troubleshoot the error suggested setting a value of 3000000 (3 million) but I found 1.5 million to work fine for me.