Vladimir Sokolov 1ed5dfc20e testing: fix TestOpenWithMaxIndex cleanup
A WAL object was closed by defer, however the WAL was rewritten afterwards,
so defer closed already closed WAL but not the new one. It caused a data
race between writing file and cleaning up a temporary test directory,
which led to a non-deterministic bug.

Fixes #14332

Signed-off-by: Vladimir Sokolov <vsvastey@gmail.com>
2022-09-08 10:49:47 +03:00
..
2018-04-16 17:36:00 -07:00
2019-05-28 15:39:35 -07:00
2019-05-28 15:39:35 -07:00
2019-05-28 15:39:35 -07:00
2019-05-28 15:39:35 -07:00