Skip to content

Check results in the DB tests#857

Merged
danielabrozzoni merged 1 commit intobitcoindevkit:masterfrom
silvestrst-crypto:silvestrs/database-tests-minor-fixes
Feb 24, 2023
Merged

Check results in the DB tests#857
danielabrozzoni merged 1 commit intobitcoindevkit:masterfrom
silvestrst-crypto:silvestrs/database-tests-minor-fixes

Conversation

@silvestrst-crypto
Copy link
Copy Markdown
Contributor

@silvestrst-crypto silvestrst-crypto commented Feb 10, 2023

Description

Checksum test was giving a false positive due to ignoring the return value.

Other tests were giving assertion fail later in the test, rather than an error on failed method call, thus making it more challenging to debug the issue.

These have been discovered, when implementing PostgreSQL backend in a downstream fork.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing
  • I ran all sqlite and key-value-db tests successfully

@danielabrozzoni
Copy link
Copy Markdown
Member

Checksum test was giving a false positive due to ignoring the return value.
Other tests were giving assertion fail later in the test, rather than an error on failed method call, thus making it more challenging to debug the issue.

Just to make it clearer, the test failures were on your postresql database implementation, and not on our database implementations, correct?

@danielabrozzoni
Copy link
Copy Markdown
Member

Clippy is complaining btw, otherwise it looks good to me

@silvestrst-crypto
Copy link
Copy Markdown
Contributor Author

Just to make it clearer, the test failures were on your postresql database implementation, and not on our database implementations, correct?

Yes, that's correct, It hid the bugs that I had in my implementation.

@silvestrst-crypto silvestrst-crypto force-pushed the silvestrs/database-tests-minor-fixes branch 2 times, most recently from c8fab6b to 5019d4c Compare February 13, 2023 07:54
@danielabrozzoni
Copy link
Copy Markdown
Member

Sorry to bother you again, can you rebase on master? Right now the CI is failing because of the hardware wallet job, and we have a fix on that in master. I sadly can't merge until the CI is green!

@silvestrst-crypto
Copy link
Copy Markdown
Contributor Author

Sorry to bother you again, can you rebase on master? Right now the CI is failing because of the hardware wallet job, and we have a fix on that in master. I sadly can't merge until the CI is green!

No worries at all, I should have done it in the first place. Thanks :)

Checksum test was giving a false positive due to ignoring the return
value.

Other tests were giving assertion fail later in the test, rather than
an error on failed method call, thus making it more challenging to
debug the issue.

These have been discovered, when implementing PostgreSQL backend in
a downstream fork.
Copy link
Copy Markdown
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

ACK a1a70a5

@danielabrozzoni danielabrozzoni merged commit ced2d05 into bitcoindevkit:master Feb 24, 2023
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.

3 participants