Skip to content

Commit

Permalink
Merge branch 'main' into hieu/comet_query
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvubk authored Dec 5, 2024
2 parents 358bebb + 3727f23 commit 13128cb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/v2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,30 @@ concurrency:
cancel-in-progress: true

jobs:
runtime-v2:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
runtime/v2/*.go
runtime/v2/go.mod
runtime/v2/go.sum
- name: test & coverage report creation
if: env.GIT_DIFF
run: |
cd runtime/v2 && go test -mod=readonly -race -timeout 30m -tags='ledger test_ledger_mock'
server-v2:
runs-on: ubuntu-latest
strategy:
Expand Down
7 changes: 5 additions & 2 deletions runtime/v2/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ func TestRegisterServices(t *testing.T) {
},
}

mockModule.On("RegisterMsgHandlers", app.msgRouterBuilder).Once()
mockModule.On("RegisterQueryHandlers", app.queryRouterBuilder).Once()
msgWrapper := newStfRouterWrapper(app.msgRouterBuilder)
queryWrapper := newStfRouterWrapper(app.queryRouterBuilder)

mockModule.On("RegisterMsgHandlers", &msgWrapper).Once()
mockModule.On("RegisterQueryHandlers", &queryWrapper).Once()

err := mm.RegisterServices(app)

Expand Down

0 comments on commit 13128cb

Please sign in to comment.