Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Add a "msg" parameter to testutil.Equals. #390

Closed
krasi-georgiev opened this issue Sep 19, 2018 · 0 comments
Closed

Add a "msg" parameter to testutil.Equals. #390

krasi-georgiev opened this issue Sep 19, 2018 · 0 comments

Comments

@krasi-georgiev
Copy link
Contributor

In most cases we end up doing something like:

// Blocks should have been created .....
testutil.Equals(t, 0, len(db.blocks))

Instead it would be better if we have something like:

testutil.Equals(t, 0, len(db.blocks), "Blocks didn't get created")

This would help when looking at the output of the failing tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant