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

chore: add test for tx priority #2394

Merged
merged 7 commits into from
Aug 31, 2023
Merged

chore: add test for tx priority #2394

merged 7 commits into from
Aug 31, 2023

Conversation

evan-forbes
Copy link
Member

@evan-forbes evan-forbes commented Aug 31, 2023

Overview

adds a simple integration test for tx priority in the mempool

closes #513 #2377

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@evan-forbes evan-forbes added testing items that are strictly related to adding or extending test coverage mempool labels Aug 31, 2023
@evan-forbes evan-forbes self-assigned this Aug 31, 2023
@celestia-bot celestia-bot requested a review from a team August 31, 2023 08:08
@evan-forbes evan-forbes added the backport:v1.x PR will be backported automatically to the v1.x branch upon merging label Aug 31, 2023
rootulp
rootulp previously approved these changes Aug 31, 2023
@rootulp
Copy link
Collaborator

rootulp commented Aug 31, 2023

Maybe also closes #2377

staheri14
staheri14 previously approved these changes Aug 31, 2023
Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

LGTM! added some suggestions.

pkg/user/tx_options.go Outdated Show resolved Hide resolved
app/test/priority_test.go Show resolved Hide resolved
app/test/priority_test.go Outdated Show resolved Hide resolved
app/test/priority_test.go Show resolved Hide resolved
@evan-forbes evan-forbes dismissed stale reviews from staheri14 and rootulp via 6e001b1 August 31, 2023 16:36
@celestia-bot celestia-bot requested a review from a team August 31, 2023 16:41
@evan-forbes evan-forbes enabled auto-merge (squash) August 31, 2023 16:43
@evan-forbes evan-forbes linked an issue Aug 31, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #2394 (6e001b1) into main (106989a) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head 6e001b1 differs from pull request most recent head d2364bf. Consider uploading reports for the commit d2364bf to get more accurate results

@@            Coverage Diff             @@
##             main    #2394      +/-   ##
==========================================
- Coverage   20.62%   20.60%   -0.02%     
==========================================
  Files         131      131              
  Lines       15266    15276      +10     
==========================================
  Hits         3148     3148              
- Misses      11816    11826      +10     
  Partials      302      302              
Files Changed Coverage Δ
pkg/user/tx_options.go 0.00% <0.00%> (ø)

Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

LGTM!

@evan-forbes evan-forbes merged commit 58c1e4e into main Aug 31, 2023
27 checks passed
@evan-forbes evan-forbes deleted the evan/test-priority branch August 31, 2023 17:02
mergify bot pushed a commit that referenced this pull request Aug 31, 2023
## Overview

adds a simple integration test for tx priority in the mempool

closes #513

## Checklist

- [x] New and updated code has appropriate documentation
- [x] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [x] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords

---------

Co-authored-by: Rootul Patel <rootulp@gmail.com>
(cherry picked from commit 58c1e4e)

# Conflicts:
#	Makefile
evan-forbes added a commit that referenced this pull request Sep 13, 2023
This is an automatic backport of pull request #2394 done by
[Mergify](https://mergify.com).
Cherry-pick of 58c1e4e has failed:
```
On branch mergify/bp/v1.x/pr-2394
Your branch is up to date with 'origin/v1.x'.

You are currently cherry-picking commit 58c1e4e.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   app/test/priority_test.go
	modified:   pkg/user/tx_options.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   Makefile

```


To fix up this pull request, you can check it out locally. See
documentation:
https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

---------

Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>
Co-authored-by: evan-forbes <evan.samuel.forbes@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:v1.x PR will be backported automatically to the v1.x branch upon merging testing items that are strictly related to adding or extending test coverage
Projects
None yet
4 participants