Skip to content

Commit

Permalink
test: fix the unstable UT bugs and remove useless testcase (#71)
Browse files Browse the repository at this point in the history
* testcase: fix the case of stream and auth module

* delete useless testcase

* remove unnecessary test
  • Loading branch information
unclezoro authored Dec 21, 2022
1 parent 344fb72 commit 5327b6e
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 1,296 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-arch: ["amd64", "arm", "arm64"]
go-arch: ["amd64"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand All @@ -38,9 +38,6 @@ jobs:
- name: Build
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build

- name: Build cosmovisor
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make cosmovisor

test-submodules:
runs-on: ubuntu-latest
container: tendermintdev/docker-tm-db-testing
Expand Down Expand Up @@ -177,23 +174,6 @@ jobs:
file: ./coverage.txt
if: env.GIT_DIFF

test-rosetta:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- name: test rosetta
run: |
make test-rosetta
# if: env.GIT_DIFF

liveness-test:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down
6 changes: 0 additions & 6 deletions core/appconfig/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,13 @@ modules:
- name: a
config:
"@type": testpb.TestModuleA
- name: b
config:
"@type": testpb.TestModuleB
`))
assert.NilError(t, container.Build(opt, &app))
buf := &bytes.Buffer{}
app(buf)
const expected = `got store key a
got store key b
running module handler a
result: hello
running module handler b
result: goodbye
`
assert.Equal(t, expected, buf.String())

Expand Down
Loading

0 comments on commit 5327b6e

Please sign in to comment.