Skip to content

Commit 71a98ef

Browse files
committed
Fix failing windows tests
1 parent 038d1d3 commit 71a98ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

initialization/migrate_metadata.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ func MigratePoST(dir string, logger *zap.Logger) (err error) {
4343
if err := json.NewDecoder(file).Decode(&version); err != nil {
4444
return fmt.Errorf("failed to determine metadata version: %w", err)
4545
}
46+
if err := file.Close(); err != nil {
47+
return fmt.Errorf("failed to close metadata file: %w", err)
48+
}
4649

4750
if version.Version == len(migrateData) {
4851
logger.Info("PoST is up to date, no migration needed")

0 commit comments

Comments
 (0)