fix test
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 6 Nov 2008 17:36:40 +0000 (17:36 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 6 Nov 2008 17:36:40 +0000 (17:36 +0000)
tests/zypp/Fetcher_test.cc

index bcf19b7..4c321de 100644 (file)
@@ -361,9 +361,12 @@ BOOST_AUTO_TEST_CASE(enqueuedir_http_broken)
       fetcher.reset();
 
       BOOST_CHECK( PathInfo(dest.path() + "/complexdir-broken/subdir2").isExist() );
-      BOOST_CHECK( PathInfo(dest.path() + "/complexdir-broken/subdir2/subdir2-file1.txt").isExist() );
+
+      BOOST_CHECK( ! PathInfo(dest.path() + "/complexdir-broken/subdir2/subdir2-file1.txt").isExist() );
+
+      // this one got transfered before the failure, so it is there
       BOOST_CHECK( PathInfo(dest.path() + "/complexdir-broken/subdir1/subdir1-file1.txt").isExist() );
-      BOOST_CHECK( PathInfo(dest.path() + "/complexdir-broken/subdir1/subdir1-file2.txt").isExist() );
+      BOOST_CHECK( PathInfo(dest.path() + "/complexdir-broken/subdir1/subdir1-file2.txt").isExist() );
 
       fetcher.reset();