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

refactor: move tests files to test package #639

Merged

Conversation

mtsitrin
Copy link
Contributor

@mtsitrin mtsitrin commented Apr 7, 2024

  • moved tests utils to testutils package
  • changed all test files to _test package
  • exported required fields and functions

PR Standards

Opening a pull request should be able to meet the following requirements


Close #636

<-- Briefly describe the content of this pull request -->

For Author:

  • Targeted PR against correct branch
  • included the correct type prefix in the PR title
  • Linked to Github issue with discussion and accepted design
  • Targets only one github issue
  • Wrote unit and integration tests
  • All CI checks have passed
  • Added relevant godoc comments

For Reviewer:

  • confirmed the correct type prefix in the PR title
  • Reviewers assigned
  • confirmed all author checklist items have been addressed

After reviewer approval:

  • In case targets main branch, PR should be squashed and merged.
  • In case PR targets a release branch, PR should be rebased.

block/manager.go Fixed Show fixed Hide fixed
block/manager.go Fixed Show fixed Hide fixed
node/node.go Fixed Show fixed Hide fixed
node/node.go Fixed Show fixed Hide fixed
Base automatically changed from mtsitrin/635-refactor-move-executer-to-block-package to main April 16, 2024 11:31
@mtsitrin mtsitrin linked an issue Apr 18, 2024 that may be closed by this pull request
block/manager.go Dismissed Show dismissed Hide dismissed
block/manager.go Dismissed Show dismissed Hide dismissed
@@ -409,8 +409,8 @@

// All events listeners should be registered here
func (n *Node) startEventListener() {
go uevent.MustSubscribe(n.ctx, n.pubsubServer, "settlementHealthStatusHandler", settlement.EventQuerySettlementHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)
go uevent.MustSubscribe(n.ctx, n.pubsubServer, "daHealthStatusHandler", da.EventQueryDAHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)
go uevent.MustSubscribe(n.Ctx, n.PubsubServer, "settlementHealthStatusHandler", settlement.EventQuerySettlementHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)

Check notice

Code scanning / CodeQL

Spawning a Go routine Note

Spawning a Go routine may be a possible source of non-determinism
go uevent.MustSubscribe(n.ctx, n.pubsubServer, "settlementHealthStatusHandler", settlement.EventQuerySettlementHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)
go uevent.MustSubscribe(n.ctx, n.pubsubServer, "daHealthStatusHandler", da.EventQueryDAHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)
go uevent.MustSubscribe(n.Ctx, n.PubsubServer, "settlementHealthStatusHandler", settlement.EventQuerySettlementHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)
go uevent.MustSubscribe(n.Ctx, n.PubsubServer, "daHealthStatusHandler", da.EventQueryDAHealthStatus, n.onBaseLayerHealthUpdate, n.Logger)

Check notice

Code scanning / CodeQL

Spawning a Go routine Note

Spawning a Go routine may be a possible source of non-determinism
@mtsitrin mtsitrin marked this pull request as ready for review April 21, 2024 10:10
@mtsitrin mtsitrin requested a review from a team as a code owner April 21, 2024 10:10
@mtsitrin mtsitrin self-assigned this Apr 21, 2024
@omritoptix omritoptix merged commit 3573217 into main Apr 21, 2024
4 checks passed
@omritoptix omritoptix deleted the mtsitirn/636-refactor-move-tests-files-to-_test-package branch April 21, 2024 13:11
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.

refactor: move tests files to _test package
2 participants