Hi @dougiebuckets,
Posting here for the community. Thanks for providing access to your code repository.
It appears to be a timeout issue.
Unfortunately fork
is slow via Infura. Data is downloaded dynamically.
Setting Mocha timeout to 100000 should work.
I tried a simple test between OpenZeppelin Test Environment and Truffle Test using fork and the Box contract from the learn guides to see if there were timing differences between Truffle and OpenZeppelin Test Environment but got fairly similar times.
$ npm run test
> box@1.0.0 test /home/abcoathup/projects/forum/box
> mocha --exit --recursive test --timeout 100000
Box
✓ retrieve returns a value previously stored (1043ms)
✓ store emits an event (921ms)
✓ non owner cannot store a value (168ms)
3 passing (12s)
$ npx truffle test
Compiling your contracts...
===========================
> Compiling ./contracts/Box.sol
> Compiling ./contracts/Migrations.sol
> Compiling @openzeppelin/contracts/GSN/Context.sol
> Compiling @openzeppelin/contracts/access/Ownable.sol
> Artifacts written to /tmp/test-2020526-857-3q4p87.pzifh
> Compiled successfully using:
- solc: 0.6.10+commit.00c0fcaf.Emscripten.clang
Contract: Box
✓ retrieve returns a value previously stored (977ms)
✓ store emits an event (956ms)
✓ non owner cannot store a value (175ms)
3 passing (8s)