mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Helper methods for Synchronizer and TX refactor
This commit is contained in:
@@ -13,9 +13,13 @@ POSTGRES_PASS=yourpasswordhere; sudo docker run --rm --name hermez-db-test -p 54
|
||||
- Then, run the tests with the password as env var
|
||||
|
||||
```
|
||||
POSTGRES_PASS=yourpasswordhere ETHCLIENT_DIAL_URL=yourethereumurlhere go test ./...
|
||||
POSTGRES_PASS=yourpasswordhere ETHCLIENT_DIAL_URL=yourethereumurlhere go test -p 1 ./...
|
||||
```
|
||||
|
||||
NOTE: `-p 1` forces execution of package test in serial. Otherwise they may be
|
||||
executed in paralel and the test may find unexpected entries in the SQL
|
||||
databse because it's shared among all tests.
|
||||
|
||||
## Lint
|
||||
|
||||
- Install [golangci-lint](https://golangci-lint.run)
|
||||
|
||||
Reference in New Issue
Block a user