folbricht / desync

Alternative casync implementation
BSD 3-Clause "New" or "Revised" License
343 stars 44 forks source link

Fix test data #261

Closed bearrito closed 8 months ago

bearrito commented 8 months ago

Fixes: https://github.com/folbricht/desync/issues/259

Test Data was missing for the info cmd test.

Since I'm not sure what the original committer did to create the data I created a new cache based off blob2.caibx and blob2.store. I then deleted some of the chunks from the cache. Those are the contents of the checked in cache.

However since the chunks changed some of the expected test values also changed. I'll comment on the files how I checked them.

Now passing locally:


=== RUN   TestInfoCommand
=== RUN   TestInfoCommand/info_command_with_store
--- PASS: TestInfoCommand/info_command_with_store (0.00s)
=== RUN   TestInfoCommand/info_command_with_seed
--- PASS: TestInfoCommand/info_command_with_seed (0.00s)
=== RUN   TestInfoCommand/info_command_with_seed_and_cache
--- PASS: TestInfoCommand/info_command_with_seed_and_cache (0.00s)
=== RUN   TestInfoCommand/info_command_with_cache
--- PASS: TestInfoCommand/info_command_with_cache (0.00s)
--- PASS: TestInfoCommand (0.00s)
PASS
ok      github.com/folbricht/desync/cmd/desync  0.009s