From 227854e258f1923e526d6fbdbc888e197d814e2a Mon Sep 17 00:00:00 2001 From: Alex | Skip Date: Thu, 5 Dec 2024 03:29:55 -0500 Subject: [PATCH 1/2] test: fix failing `runtime/v2` test (#22760) --- runtime/v2/services_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/runtime/v2/services_test.go b/runtime/v2/services_test.go index 83e16d4e714..9974d7176da 100644 --- a/runtime/v2/services_test.go +++ b/runtime/v2/services_test.go @@ -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) From 3727f23efd2083470af70748ba2dab55497bc8c8 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 5 Dec 2024 10:51:30 +0100 Subject: [PATCH 2/2] ci: run runtime/v2 tests in CI (#22769) --- .github/workflows/v2-test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/v2-test.yml b/.github/workflows/v2-test.yml index a5fe8caf684..ee2cccea49f 100644 --- a/.github/workflows/v2-test.yml +++ b/.github/workflows/v2-test.yml @@ -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/get-diff-action@v6.1.2 + 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: