Skip to content

Commit dc6d3af

Browse files
committed
fix test failure
1 parent e1ce631 commit dc6d3af

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/coordinator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Test coordinator packages
113113
working-directory: 'coordinator'
114114
run: |
115-
# go test -exec "env LD_LIBRARY_PATH=${PWD}/verifier/lib" -v -race -gcflags="-l" -ldflags="-s=false" -coverpkg="scroll-tech/coordinator" -coverprofile=coverage.txt -covermode=atomic ./...
115+
# go test -exec "env LD_LIBRARY_PATH=${PWD}/../common/libzkp/lib" -v -race -gcflags="-l" -ldflags="-s=false" -coverpkg="scroll-tech/coordinator" -coverprofile=coverage.txt -covermode=atomic ./...
116116
go test -v -race -gcflags="-l" -ldflags="-s=false" -coverprofile=coverage.txt -covermode=atomic -tags mock_verifier ./...
117117
- name: Upload coverage reports to Codecov
118118
uses: codecov/codecov-action@v3

coordinator/internal/controller/api/controller.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
package api
22

33
import (
4-
"encoding/json"
5-
64
"github.com/prometheus/client_golang/prometheus"
75
"github.com/scroll-tech/go-ethereum/log"
86
"github.com/scroll-tech/go-ethereum/params"
97
"gorm.io/gorm"
108

11-
"scroll-tech/common/libzkp"
129
"scroll-tech/coordinator/internal/config"
1310
"scroll-tech/coordinator/internal/logic/verifier"
1411
)
@@ -31,15 +28,16 @@ func InitController(cfg *config.Config, chainCfg *params.ChainConfig, db *gorm.D
3128

3229
log.Info("verifier created", "openVmVerifier", vf.OpenVMVkMap)
3330

34-
l2cfg := cfg.L2.Endpoint
31+
// TODO: enable this when the libzkp has been updated
32+
/*l2cfg := cfg.L2.Endpoint
3533
if l2cfg == nil {
3634
panic("l2geth is not specified")
3735
}
3836
l2cfgBytes, err := json.Marshal(l2cfg)
3937
if err != nil {
4038
panic(err)
4139
}
42-
libzkp.InitL2geth(string(l2cfgBytes))
40+
libzkp.InitL2geth(string(l2cfgBytes))*/
4341

4442
Auth = NewAuthController(db, cfg, vf)
4543
GetTask = NewGetTaskController(cfg, chainCfg, db, reg)

0 commit comments

Comments
 (0)