mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix "The process cannot access the file because it is being used by another process."
This commit is contained in:
parent
bcb18cdb1e
commit
9d60ea60ad
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ func TestReadWriteFreezerTableMeta(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("Failed to create file %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
err = writeMetadata(f, newMetadata(100))
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to write metadata %v", err)
|
||||
|
|
@ -47,6 +48,7 @@ func TestInitializeFreezerTableMeta(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("Failed to create file %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
meta, err := loadMetadata(f, uint64(100))
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to read metadata %v", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue