Skip to content

Print out diff in sentinel test if it fails.#679

Open
arssher wants to merge 1 commit intosorintlab:masterfrom
postgrespro:print_diff_in_sentinel_test
Open

Print out diff in sentinel test if it fails.#679
arssher wants to merge 1 commit intosorintlab:masterfrom
postgrespro:print_diff_in_sentinel_test

Conversation

@arssher
Copy link

@arssher arssher commented Jun 30, 2019

Makes eyeballing of test failures easier...

Extracted from pull request #622.

Makes eyeballing of test failures easier...
@arssher arssher mentioned this pull request Jun 30, 2019
Copy link
Contributor

@lawrencejones lawrencejones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @arssher!

I think this is a great idea, as the sentinel tests can be difficult to debug right now.

I don't think we should be vendoring our own diffing code though. I'd far prefer we use a library that provides diffing, such as https://github.com/google/go-cmp.

Can you adjust this PR to do that instead? Then I'd be happy to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants