actions: fix test-importer workflow (#410)

* actions: fix test-importer workflow

* update gitignore
This commit is contained in:
Federico Kunze
2020-07-24 14:54:25 -04:00
committed by GitHub
parent cc6b5d04f2
commit 8789a04998
4 changed files with 23 additions and 18 deletions
+4 -1
View File
@@ -207,7 +207,10 @@ func TestImportBlocks(t *testing.T) {
blockchainInput, err := os.Open(flagBlockchain)
require.Nil(t, err)
defer require.NoError(t, blockchainInput.Close())
defer func() {
err := blockchainInput.Close()
require.NoError(t, err)
}()
// ethereum mainnet config
chainContext := core.NewChainContext()