Skip to content

Commit 9547d17

Browse files
fix(internal/cosmos-sdk): resolve ledger error in tests using build tags (#2505)
1 parent 5cfc50e commit 9547d17

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

internal/cosmos-sdk/justfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ gen-proto-go:
1313
fi
1414
echo "✅ SUCCESS: just gen-proto-go"
1515

16+
# Run cosmos-sdk tests relevant to Nibiru
1617
test:
1718
#!/usr/bin/env bash
19+
printf "\n\nRun tests - cosmos-sdk/types:\n"
20+
go test ./types/... -tags='ledger test_ledger_mock'
21+
22+
printf "\n\nRun tests - cosmos-sdk/x:\n"
1823
go test ./x/...
24+
25+
printf "\n\nRun tests - cosmos-sdk/baseapp:\n"
1926
go test ./baseapp/...
20-
# FIXME: Fails due to ledger error. This was not fixed in t# cosmos-sdk.
21-
# We'll need to do it here in order to run the tests for the entire repo.
22-
# go test ./types/...

internal/cosmos-sdk/types/bech32/legacybech32/pk_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import (
1111
sdk "github.com/cosmos/cosmos-sdk/types"
1212
)
1313

14+
// NOTE: This test requires the build tags for ledger devices.
15+
// In other words, you'd run something like
16+
// ```
17+
// go test ./types/... -tags='ledger test_ledger_mock'
18+
// ```
1419
func TestBeach32ifPbKey(t *testing.T) {
1520
require := require.New(t)
1621
path := *hd.NewFundraiserParams(0, sdk.CoinType, 0)

0 commit comments

Comments
 (0)