-
Notifications
You must be signed in to change notification settings - Fork 246
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(wallet) add pending transaction test helpers #4492
Conversation
[ghstack-poisoned]
Jenkins BuildsClick to see older builds (36)
|
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. [ghstack-poisoned]
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. [ghstack-poisoned]
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. [ghstack-poisoned]
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. [ghstack-poisoned]
transactions/testhelpers.go
Outdated
"math/big" | ||
|
||
"github.com/stretchr/testify/mock" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: is this standard practice to have all these gaps between imports? would be cleaner if not imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got import linting errors in CI and my local make lint
doesn't work for me hence I did more than the usual separation of standard and external imports. Fixing them right now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is back with error: File is not
goimports-ed with -local github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/waku-org/go-waku (goimports)
And my local make lint
throws false positives:
make lint
ln: /Users/stefan/proj/status/status-desktop/vendor/status-go//.git/hooks: Not a directory
lint
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive.
WARN [linters_context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649.
services/wallet/bridge/bridge.go:53:18: t.HopTx.From undefined (type *HopTxArgs has no field or method From) (typecheck)
return t.HopTx.From
^
services/wallet/bridge/bridge.go:55:22: t.CbridgeTx.From undefined (type *CBridgeTxArgs has no field or method From) (typecheck)
return t.CbridgeTx.From
^
services/wallet/bridge/bridge.go:57:29: t.ERC721TransferTx.From undefined (type *ERC721TransferTxArgs has no field or method From) (typecheck)
I'm going back to separating the imports based on account
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. [ghstack-poisoned]
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. [ghstack-poisoned]
✔️ status-go/prs/ios/PR-4492#11 🔹 ~4 min 38 sec 🔹 bb9b54e 🔹 📦 ios package |
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. Updates status-desktop: [#13124](status-im/status-desktop#13124) ghstack-source-id: d85756b80fefd3bf7590637cb7f4dc1af615cecd Pull Request resolved: #4492
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file `transactions/testhelpers.go`. Update event names for clarity and consistency in `pendingtxtracker.go`. Updates status-desktop: [#13124](status-im/status-desktop#13124) ghstack-source-id: d85756b80fefd3bf7590637cb7f4dc1af615cecd Pull Request resolved: #4492
Stack from ghstack (oldest at bottom):
Refactor the test helpers for pending transactions by extracting the mock implementations and helper functions into a new file
transactions/testhelpers.go
. Update event names for clarity and consistency inpendingtxtracker.go
.