Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* e2e group 2 fixed

* group 3
  • Loading branch information
ARR552 authored Oct 14, 2022
1 parent 788d3f5 commit 3bef107
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ test-e2e-group-1: build-docker compile-scs ## Runs group 1 e2e tests checking ra
$(RUNSTATEDB)
$(RUNPOOLDB)
$(RUNRPCDB); sleep 5
trap '$(STOPSTATEDB) && $(STOPPOOLDB) && $(STOPRPCDB)' EXIT; MallocNanoZone=0 go test -race -v -p 1 -timeout 600s ./ci/e2e-group1/...
$(RUNZKPROVER)
trap '$(STOPSTATEDB) && $(STOPPOOLDB) && $(STOPRPCDB) && $(STOPZKPROVER)' EXIT; MallocNanoZone=0 go test -race -v -p 1 -timeout 600s ./ci/e2e-group1/...

.PHONY: test-e2e-group-2
test-e2e-group-2: build-docker compile-scs ## Runs group 2 e2e tests checking race conditions
Expand All @@ -162,6 +163,7 @@ test-e2e-group-2: build-docker compile-scs ## Runs group 2 e2e tests checking ra
$(RUNSTATEDB)
$(RUNPOOLDB)
$(RUNRPCDB); sleep 5
${RUNL1NETWORK}
CONFIG_MODE="test" $(RUNZKPROVER)
docker ps -a
docker logs $(DOCKERCOMPOSEZKPROVER)
Expand All @@ -176,6 +178,7 @@ test-e2e-group-3: build-docker compile-scs ## Runs group 3 e2e tests checking ra
$(RUNSTATEDB)
$(RUNPOOLDB)
$(RUNRPCDB); sleep 5
$(RUNZKPROVER); sleep 2
trap '$(STOPSTATEDB) && $(STOPPOOLDB) && $(STOPRPCDB)' EXIT; MallocNanoZone=0 go test -race -v -p 1 -timeout 600s ./ci/e2e-group3/...

.PHONY: install-linter
Expand Down Expand Up @@ -311,9 +314,9 @@ run-approve-matic: ## Runs approve in node container
stop-approve-matic: ## Stops approve in node container
$(STOPAPPROVE)

.PHONY: init-network
init-network: ## Initializes the network
go run ./scripts/init_network/main.go .
#.PHONY: init-network
#init-network: ## Initializes the network
# go run ./scripts/init_network/main.go .

.PHONY: deploy-sc
deploy-sc: ## deploys some examples of transactions and smart contracts
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ services:
image: zkevm-node
environment:
- ZKEVM_NODE_STATEDB_HOST=zkevm-state-db
- ZKEVM_NODE_ETHERMAN_PRIVATEKEYPATH=/pk/keystore
ports:
- 61090:61090
volumes:
- ./config/config.local.toml:/app/config.toml
- ./test/test.keystore:/pk/keystore
command:
- "/bin/sh"
- "-c"
Expand Down
4 changes: 2 additions & 2 deletions test/operations/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const (
var (
stateDBCfg = dbutils.NewStateConfigFromEnv()
poolDBCfg = dbutils.NewPoolConfigFromEnv()
rpcDBCfg = dbutils.NewPoolConfigFromEnv()
rpcDBCfg = dbutils.NewRPCConfigFromEnv()
executorConfig = executor.Config{URI: executorURI}
merkletreeConfig = merkletree.Config{URI: merkletreeURI}
)
Expand Down Expand Up @@ -397,7 +397,7 @@ func (m *Manager) SetUpSequencer() error {
return err
}

if b.Cmp(maticAmount) <= 0 {
if b.Cmp(maticAmount) < 0 {
return fmt.Errorf("Minimum amount is: %v but found: %v", maticAmount.Text(encoding.Base10), b.Text(encoding.Base10))
}

Expand Down

0 comments on commit 3bef107

Please sign in to comment.