test: fix failing store_restart.test.go on Windows
@@ -184,6 +184,7 @@ func openStoreCloseStartup(t *testing.T, s *Store) {
if err := s.Open(); err != nil {
t.Fatalf("failed to open single-node store: %s", err.Error())
}
+ defer s.Close(true)
if _, err := s.WaitForLeader(10 * time.Second); err != nil {
t.Fatalf("Error waiting for leader: %s", err)
}
