mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-29 12:47:02 +00:00
While inspecting the snapshot code, I realized that we don't have any tests for it. So I decided to add some. Unfortunately I couldn't come up with a test of clearsnapshot reliably failing to remove the directory: relying on create snapshot + clearsnapshot is racy (not always happen), and other tricks that can be used to reproduce this -- like creating a root-owned file inside the snapshots directory -- is environment-dependent, and a bit ugly for unit tests. Dtests would probably be a better place for that. Signed-off-by: Glauber Costa <glauber@scylladb.com>
19 KiB
19 KiB