Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lint tests #1906

Merged
merged 117 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from 99 commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
ef878c1
remove unused linters that produced a warning and ensure that unparam…
faddat Dec 30, 2023
70eb66a
apply the linters to tests
faddat Dec 30, 2023
e8209ba
additional autofixes
faddat Dec 30, 2023
5b52c8f
test helpers
faddat Dec 30, 2023
3daaf08
all helper functions start from t.Helper()
faddat Dec 30, 2023
8114763
mainly assert -> require and other hygene changes
faddat Dec 30, 2023
30aa064
further updates and attempts at fixes
faddat Dec 30, 2023
39e2a80
further cleanups
faddat Dec 30, 2023
52feef8
fix double declaration
faddat Dec 30, 2023
ba108c6
b.helper()
faddat Dec 30, 2023
9c9612d
use stdlib http methods
faddat Dec 30, 2023
f800ff6
Fix test assertions in various test files
faddat Dec 30, 2023
cafb654
Fix validation test assertions
faddat Dec 30, 2023
4da28eb
Fix test assertions and clean up code
faddat Dec 30, 2023
6c928dd
Fix field element comparison in
faddat Dec 30, 2023
3e5a58a
Fix various test failures and errors in the code
faddat Dec 30, 2023
da358a0
Fix assertion in
faddat Dec 30, 2023
96e9c41
Fix error handling and add arguments to
faddat Dec 30, 2023
fb5abd2
as a piece of Free software, cometbft does NOT need to support digita…
faddat Dec 30, 2023
1fb7922
Revert "b.helper()"
faddat Jan 1, 2024
551cc8a
error handling
faddat Jan 1, 2024
1c37828
reactor_test.go removed in master
faddat Jan 1, 2024
18e4ec6
fix a bug from removing an error that is always nil
faddat Jan 1, 2024
1aa95f2
use correct require calls
faddat Jan 1, 2024
101c812
begin reversing expected and equal values
faddat Jan 1, 2024
521ff62
complete reversing expected and actual
faddat Jan 1, 2024
368cd39
favor require.NoError over require.Nil
faddat Jan 1, 2024
5aa0fb5
fix issue with len in kvstore test
faddat Jan 1, 2024
8e19f1f
use the correct numeral type in TestBlockStoreSaveLoadBlock
faddat Jan 1, 2024
a7b09b4
Fix test assertions in
faddat Jan 1, 2024
6158c78
Fix assertions in test cases
faddat Jan 1, 2024
2d58fce
Fix test assertions in rpc/client/helpers_test.go
faddat Jan 1, 2024
55efb86
revert a store test fix that was causing issues
faddat Jan 1, 2024
d5c5759
Fix test assertions in state_test.go,
faddat Jan 1, 2024
6fdb22d
assert.Gerater
faddat Jan 1, 2024
6577fa7
Fix assert statements in test files
faddat Jan 1, 2024
ae9e437
Fix assertion order in TestBlockFetchAtHeight
faddat Jan 1, 2024
d14e3ec
fix regressions
faddat Jan 1, 2024
df91621
Fix test assertions in various test files
faddat Jan 1, 2024
28a338e
Fix test assertions in detector_test.go,
faddat Jan 1, 2024
5a4eede
Add gofmt linter and update assertions in tests
faddat Jan 1, 2024
f160df3
Fix test helper functions
faddat Jan 1, 2024
6da2d3a
Refactor code to use strconv.Itoa instead of
faddat Jan 1, 2024
17cdc7e
Fix assertion errors in unit tests
faddat Jan 1, 2024
6d52a90
Fix test assertions in types_test.go,
faddat Jan 1, 2024
fc5dd31
Fix test cases and update provider configuration
faddat Jan 1, 2024
a39677a
Fix ValidateBasic assertion in http_test.go
faddat Jan 1, 2024
1ed9a3a
attempt to fix a regression
faddat Jan 1, 2024
d6d4553
Refactor assert functions in verify_test.go
faddat Jan 1, 2024
c91456e
remove gocritic linter and update assertions in tests
faddat Jan 1, 2024
7fc8cac
Fix error handling in state_test.go and
faddat Jan 1, 2024
e515876
Fix test assertions in store_test.go,
faddat Jan 1, 2024
4408184
Fix test assertions in unit tests
faddat Jan 1, 2024
855f2f6
Fix test assertions in unit tests
faddat Jan 1, 2024
cebc49c
Fix test assertions in store_test.go,
faddat Jan 1, 2024
35cbe83
attempt to fix http test
faddat Jan 1, 2024
2cc86de
Fix test assertions in peer_test.go,
faddat Jan 1, 2024
b498ad9
Fix various test assertions
faddat Jan 1, 2024
f4885e3
Fix test assertions in state_test.go,
faddat Jan 1, 2024
b444c0a
Fix test assertions and remove unused import
faddat Jan 1, 2024
37e95c9
Fix test assertions in state_test.go and
faddat Jan 1, 2024
d023ecd
Fix makeValidCommit function signature
faddat Jan 1, 2024
c512b74
Fix assert statements and require.NoError usage in
faddat Jan 1, 2024
dc44553
Fix test assertions and error handling
faddat Jan 1, 2024
286398e
Fix type conversion in
faddat Jan 1, 2024
99e35fc
Fix test assertions in rpc/client/rpc_test.go and
faddat Jan 1, 2024
9d7b1cd
Fix empty result assertion in TestTxSearch
faddat Jan 1, 2024
82777b6
Fix variable initialization and remove unnecessary
faddat Jan 1, 2024
8221186
remove unused code
faddat Jan 1, 2024
3e0486e
finished :D
faddat Jan 1, 2024
26e58ae
Fix reactorPairs initialization in
faddat Jan 1, 2024
ce424b6
Fix empty result assertion in TestTxSearch
faddat Jan 1, 2024
2fad4e1
Fix duplicate channel creation in
faddat Jan 1, 2024
ce39f14
Fix typos and add comments to address book
faddat Jan 1, 2024
0e7e422
Update field names in TestStruct
faddat Jan 1, 2024
9c31352
Fix randGenesisDoc function signature and update
faddat Jan 1, 2024
0ef18e5
Add helper function for counting old and new
faddat Jan 1, 2024
26ef587
Refactor calcOldBucket function in addrbook.go
faddat Jan 1, 2024
81517d8
Fix code formatting and remove unused code
faddat Jan 1, 2024
a9fd40e
Fix linter configuration
faddat Jan 1, 2024
34365de
test if this is a ci flake by adding some godoc
faddat Jan 1, 2024
ed57549
fix lint issues in ci jobs
faddat Jan 1, 2024
d2e4909
add a godoc to fix tests
faddat Jan 1, 2024
3d95a5e
unclog
faddat Jan 2, 2024
2f9d5a2
Merge branch 'main' into faddat/lint-tests
faddat Jan 3, 2024
3a6f929
Update internal/state/state_test.go
faddat Jan 4, 2024
b2f3d72
Merge branch 'main' into faddat/lint-tests
faddat Jan 4, 2024
fa1e568
re-add reactor test
faddat Jan 4, 2024
c4213a2
Update internal/state/state_test.go
faddat Jan 4, 2024
ea062fc
revert changes to db.go
faddat Jan 4, 2024
1a4b3f2
disable unparam
faddat Jan 4, 2024
6afbc44
lint
faddat Jan 4, 2024
dbc9482
Merge branch 'main' into faddat/lint-tests
faddat Jan 5, 2024
8bc3a81
linter autofix
faddat Jan 5, 2024
aefadf5
reduce same issues and same linter significantly
faddat Jan 5, 2024
a5631d7
Update .golangci.yml
faddat Jan 5, 2024
5b11e70
Update internal/consensus/state_test.go
faddat Jan 5, 2024
5aef472
Update .golangci.yml
faddat Jan 5, 2024
f2a6ebe
Merge branch 'main' into faddat/lint-tests
faddat Jan 7, 2024
2b22e6c
print index
melekes Jan 8, 2024
9e079ca
remove extra err msg
melekes Jan 8, 2024
f37177e
print err
melekes Jan 8, 2024
210ae91
print err
melekes Jan 8, 2024
efb5a8f
print err
melekes Jan 8, 2024
ace8c97
print err
melekes Jan 8, 2024
c012376
fix assert
melekes Jan 8, 2024
97f5464
remove extra msg
melekes Jan 8, 2024
e8bb42e
remove extra msg
melekes Jan 8, 2024
3e3edae
remove extra Sprintf
melekes Jan 8, 2024
29b9915
remove extra Sprintf
melekes Jan 8, 2024
51195c7
remove needless Sprintf
melekes Jan 8, 2024
ca6c713
bring back err msg
melekes Jan 8, 2024
ad19a98
Revert "as a piece of Free software, cometbft does NOT need to suppor…
melekes Jan 8, 2024
ccf852f
fix remaining errors
melekes Jan 8, 2024
1560560
Merge branch 'main' into faddat/lint-tests
melekes Jan 8, 2024
cfbcfdf
remove changelog entry
melekes Jan 8, 2024
72dc42f
fix TestReactorTxSendersLocal
melekes Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/unreleased/chore/1906.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint cometbft tests
3 changes: 2 additions & 1 deletion .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Note that we run these checks regardless whether the input files have
# changed, because generated code can change in response to toolchain updates
# even if no files in the repository are modified.

name: Check generated code
on:
pull_request:
Expand Down Expand Up @@ -46,7 +47,7 @@ jobs:

- uses: actions/checkout@v4
with:
fetch-depth: 1 # we need a .git directory to run git diff
fetch-depth: 1 # we need a .git directory to run git diff

- name: "Check protobuf generated code"
run: |
Expand Down
17 changes: 12 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
run:
tests: false
timeout: 5m
tests: true
timeout: 10m

linters:
enable-all: true
Expand All @@ -20,13 +20,16 @@ linters:
- forcetypeassert
- funlen
- gochecknoglobals
- goimports
- gocritic
- gochecknoinits
- gocognit
- gocyclo
- godox
- goerr113
- golint
- gomnd
- gofmt
- gomoddirectives
- ifshort
- interfacebloat
Expand All @@ -38,17 +41,21 @@ linters:
- maligned
- nestif
- nilnil
- noctx
- nlreturn
- nonamedreturns
- testpackage
- paralleltest
- unparam
- nosnakecase
- predeclared
- tagliatelle
- typecheck
- varnamelen
- wrapcheck
- tparallel
melekes marked this conversation as resolved.
Show resolved Hide resolved
- wsl
- scopelint
- unparam
- revive

issues:
Expand All @@ -62,8 +69,8 @@ issues:
- goimports
- govet
- stylecheck
max-same-issues: 50

max-same-issues: 10000
faddat marked this conversation as resolved.
Show resolved Hide resolved
max-issues-per-linter: 10000
faddat marked this conversation as resolved.
Show resolved Hide resolved
linters-settings:
dogsled:
max-blank-identifiers: 3
Expand Down
7 changes: 3 additions & 4 deletions abci/client/socket_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/cometbft/cometbft/abci/types"
cmtrand "github.com/cometbft/cometbft/internal/rand"
"github.com/cometbft/cometbft/internal/service"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand All @@ -38,7 +37,7 @@ func TestCalls(t *testing.T) {
require.Fail(t, "No response arrived")
case err, ok := <-resp:
require.True(t, ok, "Must not close channel")
assert.NoError(t, err, "This should return success")
require.NoError(t, err)
}
}

Expand Down Expand Up @@ -71,7 +70,7 @@ func TestHangingAsyncCalls(t *testing.T) {
require.Fail(t, "No response arrived")
case err, ok := <-resp:
require.True(t, ok, "Must not close channel")
assert.Error(t, err, "We should get EOF error")
require.Error(t, err, "We should get EOF error")
}
}

Expand Down Expand Up @@ -112,7 +111,7 @@ func TestBulk(t *testing.T) {
// Send bulk request
res, err := client.FinalizeBlock(context.Background(), rfb)
require.NoError(t, err)
require.Equal(t, numTxs, len(res.TxResults), "Number of txs doesn't match")
require.Len(t, res.TxResults, numTxs, "Number of txs doesn't match")
for _, tx := range res.TxResults {
require.Equal(t, uint32(0), tx.Code, "Tx failed")
}
Expand Down
38 changes: 22 additions & 16 deletions abci/example/kvstore/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
abcicli "github.com/cometbft/cometbft/abci/client"
abciserver "github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/internal/service"
"github.com/cometbft/cometbft/libs/log"
"github.com/stretchr/testify/require"
)
Expand All @@ -25,12 +24,16 @@ func TestKVStoreKV(t *testing.T) {

kvstore := NewInMemoryApplication()
tx := []byte(testKey + ":" + testValue)
testKVStore(ctx, t, kvstore, tx, testKey, testValue)
testKVStore(ctx, t, kvstore, tx)
tx = []byte(testKey + "=" + testValue)
testKVStore(ctx, t, kvstore, tx, testKey, testValue)
testKVStore(ctx, t, kvstore, tx)
}

func testKVStore(ctx context.Context, t *testing.T, app types.Application, tx []byte, key, value string) {
func testKVStore(ctx context.Context, t *testing.T, app types.Application, tx []byte) {
t.Helper()

value := "def"
key := "abc"
checkTxResp, err := app.CheckTx(ctx, &types.CheckTxRequest{Tx: tx, Type: types.CHECK_TX_TYPE_CHECK})
require.NoError(t, err)
require.Equal(t, uint32(0), checkTxResp.Code)
Expand All @@ -41,7 +44,7 @@ func testKVStore(ctx context.Context, t *testing.T, app types.Application, tx []
req := &types.FinalizeBlockRequest{Height: 1, Txs: ppResp.Txs}
ar, err := app.FinalizeBlock(ctx, req)
require.NoError(t, err)
require.Equal(t, 1, len(ar.TxResults))
require.Len(t, ar.TxResults, 1)
require.False(t, ar.TxResults[0].IsErr())
// commit
_, err = app.Commit(ctx, &types.CommitRequest{})
Expand Down Expand Up @@ -84,14 +87,14 @@ func TestPersistentKVStoreEmptyTX(t *testing.T) {
reqCheck := types.CheckTxRequest{Tx: tx, Type: types.CHECK_TX_TYPE_CHECK}
resCheck, err := kvstore.CheckTx(ctx, &reqCheck)
require.NoError(t, err)
require.Equal(t, resCheck.Code, CodeTypeInvalidTxFormat)
require.Equal(t, CodeTypeInvalidTxFormat, resCheck.Code)

txs := make([][]byte, 0, 4)
txs = append(txs, []byte("key=value"), []byte("key:val"), []byte(""), []byte("kee=value"))
reqPrepare := types.PrepareProposalRequest{Txs: txs, MaxTxBytes: 10 * 1024}
resPrepare, err := kvstore.PrepareProposal(ctx, &reqPrepare)
require.NoError(t, err)
require.Equal(t, len(reqPrepare.Txs)-1, len(resPrepare.Txs), "Empty transaction not properly removed")
require.Len(t, resPrepare.Txs, len(reqPrepare.Txs)-1, "Empty transaction not properly removed")
}

func TestPersistentKVStoreKV(t *testing.T) {
Expand All @@ -101,7 +104,7 @@ func TestPersistentKVStoreKV(t *testing.T) {
kvstore := NewPersistentApplication(t.TempDir())
key := testKey
value := testValue
testKVStore(ctx, t, kvstore, NewTx(key, value), key, value)
testKVStore(ctx, t, kvstore, NewTx(key, value))
}

func TestPersistentKVStoreInfo(t *testing.T) {
Expand Down Expand Up @@ -237,13 +240,13 @@ func TestClientServer(t *testing.T) {
defer cancel()
// set up socket app
kvstore := NewInMemoryApplication()
client, _, err := makeClientServer(t, kvstore, "kvstore-socket", "socket")
client, err := makeClientServer(t, kvstore, "kvstore-socket", "socket")
require.NoError(t, err)
runClientTests(ctx, t, client)

// set up grpc app
kvstore = NewInMemoryApplication()
gclient, _, err := makeClientServer(t, kvstore, t.TempDir(), "grpc")
gclient, err := makeClientServer(t, kvstore, t.TempDir(), "grpc")
require.NoError(t, err)
runClientTests(ctx, t, gclient)
}
Expand All @@ -256,6 +259,7 @@ func makeApplyBlock(
diff []types.ValidatorUpdate,
txs ...[]byte,
) {
t.Helper()
// make and apply block
height := int64(heightInt)
hash := []byte("foo")
Expand Down Expand Up @@ -289,7 +293,8 @@ func valsEqual(t *testing.T, vals1, vals2 []types.ValidatorUpdate) {
}
}

func makeClientServer(t *testing.T, app types.Application, name, transport string) (abcicli.Client, service.Service, error) {
func makeClientServer(t *testing.T, app types.Application, name, transport string) (abcicli.Client, error) {
t.Helper()
// Start the listener
addr := fmt.Sprintf("unix://%s.sock", name)
logger := log.TestingLogger()
Expand All @@ -298,7 +303,7 @@ func makeClientServer(t *testing.T, app types.Application, name, transport strin
require.NoError(t, err)
server.SetLogger(logger.With("module", "abci-server"))
if err := server.Start(); err != nil {
return nil, nil, err
return nil, err
}

t.Cleanup(func() {
Expand All @@ -312,7 +317,7 @@ func makeClientServer(t *testing.T, app types.Application, name, transport strin
require.NoError(t, err)
client.SetLogger(logger.With("module", "abci-client"))
if err := client.Start(); err != nil {
return nil, nil, err
return nil, err
}

t.Cleanup(func() {
Expand All @@ -321,15 +326,16 @@ func makeClientServer(t *testing.T, app types.Application, name, transport strin
}
})

return client, server, nil
return client, nil
}

func runClientTests(ctx context.Context, t *testing.T, client abcicli.Client) {
t.Helper()
// run some tests....
tx := []byte(testKey + ":" + testValue)
testKVStore(ctx, t, client, tx, testKey, testValue)
testKVStore(ctx, t, client, tx)
tx = []byte(testKey + "=" + testValue)
testKVStore(ctx, t, client, tx, testKey, testValue)
testKVStore(ctx, t, client, tx)
}

func TestTxGeneration(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions abci/tests/client_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
abciclient "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore"
abciserver "github.com/cometbft/cometbft/abci/server"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestClientServerNoAddrPrefix(t *testing.T) {
Expand All @@ -17,19 +17,19 @@ func TestClientServerNoAddrPrefix(t *testing.T) {
app := kvstore.NewInMemoryApplication()

server, err := abciserver.NewServer(addr, transport, app)
assert.NoError(t, err, "expected no error on NewServer")
require.NoError(t, err)
err = server.Start()
assert.NoError(t, err, "expected no error on server.Start")
require.NoError(t, err)
t.Cleanup(func() {
if err := server.Stop(); err != nil {
t.Error(err)
}
})

client, err := abciclient.NewClient(addr, transport, true)
assert.NoError(t, err, "expected no error on NewClient")
require.NoError(t, err)
err = client.Start()
assert.NoError(t, err, "expected no error on client.Start")
require.NoError(t, err)
t.Cleanup(func() {
if err := client.Stop(); err != nil {
t.Error(err)
Expand Down
19 changes: 10 additions & 9 deletions abci/types/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import (
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
"github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestMarshalJSON(t *testing.T) {
b, err := json.Marshal(&ExecTxResult{Code: 1})
assert.NoError(t, err)
require.NoError(t, err)
// include empty fields.
assert.True(t, strings.Contains(string(b), "code"))
r1 := CheckTxResponse{
Expand All @@ -30,11 +31,11 @@ func TestMarshalJSON(t *testing.T) {
},
}
b, err = json.Marshal(&r1)
assert.Nil(t, err)
require.NoError(t, err)

var r2 CheckTxResponse
err = json.Unmarshal(b, &r2)
assert.Nil(t, err)
require.NoError(t, err)
assert.Equal(t, r1, r2)
}

Expand All @@ -48,11 +49,11 @@ func TestWriteReadMessageSimple(t *testing.T) {
for _, c := range cases {
buf := new(bytes.Buffer)
err := WriteMessage(c, buf)
assert.Nil(t, err)
require.NoError(t, err)

msg := new(EchoRequest)
err = ReadMessage(buf, msg)
assert.Nil(t, err)
require.NoError(t, err)

assert.True(t, proto.Equal(c, msg))
}
Expand All @@ -70,11 +71,11 @@ func TestWriteReadMessage(t *testing.T) {
for _, c := range cases {
buf := new(bytes.Buffer)
err := WriteMessage(c, buf)
assert.Nil(t, err)
require.NoError(t, err)

msg := new(cmtproto.Header)
err = ReadMessage(buf, msg)
assert.Nil(t, err)
require.NoError(t, err)

assert.True(t, proto.Equal(c, msg))
}
Expand Down Expand Up @@ -102,11 +103,11 @@ func TestWriteReadMessage2(t *testing.T) {
for _, c := range cases {
buf := new(bytes.Buffer)
err := WriteMessage(c, buf)
assert.Nil(t, err)
require.NoError(t, err)

msg := new(CheckTxResponse)
err = ReadMessage(buf, msg)
assert.Nil(t, err)
require.NoError(t, err)

assert.True(t, proto.Equal(c, msg))
}
Expand Down
2 changes: 1 addition & 1 deletion abci/types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestHashAndProveResults(t *testing.T) {
require.NoError(t, err)

valid := proofs[i].Verify(root, bz)
assert.NoError(t, valid, "%d", i)
require.NoError(t, valid)
melekes marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down
8 changes: 3 additions & 5 deletions cmd/cometbft/commands/reindex_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ import (
"errors"
"testing"

"github.com/spf13/cobra"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"

dbm "github.com/cometbft/cometbft-db"

abcitypes "github.com/cometbft/cometbft/abci/types"
cmtcfg "github.com/cometbft/cometbft/config"
blockmocks "github.com/cometbft/cometbft/internal/state/indexer/mocks"
"github.com/cometbft/cometbft/internal/state/mocks"
txmocks "github.com/cometbft/cometbft/internal/state/txindex/mocks"
"github.com/cometbft/cometbft/internal/test"
"github.com/cometbft/cometbft/types"
"github.com/spf13/cobra"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions cmd/cometbft/commands/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import (
"path/filepath"
"testing"

"github.com/stretchr/testify/require"

cfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/privval"
"github.com/stretchr/testify/require"
)

func Test_ResetAll(t *testing.T) {
Expand Down
Loading
Loading