Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Require no errors when none expected #1509

Merged

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1207

Description

Requires no errors when none expected instead of just asserting. Asserts here typically result in panics which confuses the logs and the developer looking at them.

@AndrewSisley AndrewSisley added area/testing Related to any test or testing suite action/no-benchmark Skips the action that runs the benchmark. labels May 16, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.5.1 milestone May 16, 2023
@AndrewSisley AndrewSisley requested a review from a team May 16, 2023 15:55
@AndrewSisley AndrewSisley self-assigned this May 16, 2023
@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #1509 (7a113bb) into develop (0621856) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1509   +/-   ##
========================================
  Coverage    72.07%   72.07%           
========================================
  Files          185      185           
  Lines        18295    18295           
========================================
+ Hits         13186    13187    +1     
  Misses        4064     4064           
+ Partials      1045     1044    -1     

see 6 files with indirect coverage changes

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

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

👍

Asserts here typically result in panics which confuses the logs
@AndrewSisley AndrewSisley merged commit e361562 into sourcenetwork:develop May 17, 2023
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
## Relevant issue(s)

Resolves sourcenetwork#1207

## Description

Requires no errors when none expected instead of just asserting. Asserts
here typically result in panics which confuses the logs and the
developer looking at them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/testing Related to any test or testing suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panics upon requesting a doc with an invalid cid
3 participants