From 742f3b4fc1ba16ab8d849a56d8a2bc356c6ea29c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 12 Jan 2016 12:15:07 -0500 Subject: [PATCH] Add GC test for torrent info --- test/test_gc.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_gc.py b/test/test_gc.py index 50c3bbbca..871b4a8a7 100644 --- a/test/test_gc.py +++ b/test/test_gc.py @@ -43,6 +43,13 @@ class TestGarbageCollection(unittest.TestCase): model.image.find_or_create_derived_storage(image, 'squash', preferred) model.image.find_or_create_derived_storage(image, 'aci', preferred) + # Add some torrent info. + try: + model.storage.save_torrent_info(image.storage, 1, 'helloworld') + model.storage.save_torrent_info(image.storage, 2, 'helloworlds!') + except: + pass + # Add some additional placements to the image. for location_name in ['local_eu']: location = database.ImageStorageLocation.get(name=location_name)