Skip to content

Commit dd992b0

Browse files
committed
Use different tempdir for each test run
1 parent db25a82 commit dd992b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x/wasm/keeper/options_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ func TestConstructorOptions(t *testing.T) {
143143
}
144144
for name, spec := range specs {
145145
t.Run(name, func(t *testing.T) {
146+
tempDir := t.TempDir()
146147
opt := spec.srcOpt
147148
_, gotPostOptMarker := opt.(postOptsFn)
148149
require.Equal(t, spec.isPostOpt, gotPostOptMarker)
149-
k := NewKeeper(codec, runtime.NewKVStoreService(storeKey), authkeeper.AccountKeeper{}, &bankkeeper.BaseKeeper{}, stakingkeeper.Keeper{}, nil, nil, nil, nil, nil, nil, nil, nil, "tempDir", types.DefaultWasmConfig(), AvailableCapabilities, "", spec.srcOpt)
150+
k := NewKeeper(codec, runtime.NewKVStoreService(storeKey), authkeeper.AccountKeeper{}, &bankkeeper.BaseKeeper{}, stakingkeeper.Keeper{}, nil, nil, nil, nil, nil, nil, nil, nil, tempDir, types.DefaultWasmConfig(), AvailableCapabilities, "", spec.srcOpt)
150151
spec.verify(t, k)
151152
})
152153
}

0 commit comments

Comments
 (0)