Co-authored-by: petersssong <petersssong@proton.me> Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
parent
2076e2fc86
commit
1cf0c517a2
@ -36,11 +36,7 @@ func (dni *doNothingIterator) IterateGenesisBalances(_ codec.JSONCodec, _ map[st
|
||||
// Ensures that CollectTx correctly traverses directories and won't error out on encountering
|
||||
// a directory during traversal of the first level. See issue https://github.com/cosmos/cosmos-sdk/issues/6788.
|
||||
func TestCollectTxsHandlesDirectories(t *testing.T) {
|
||||
testDir, err := os.MkdirTemp(os.TempDir(), "testCollectTxs")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer os.RemoveAll(testDir)
|
||||
testDir := t.TempDir()
|
||||
|
||||
// 1. We'll insert a directory as the first element before JSON file.
|
||||
subDirPath := filepath.Join(testDir, "_adir")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user