aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2006-11-01 19:15:15 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2006-11-01 19:15:15 +0000
commita5390f64190d646bf0cfdc488c396bbd9c33b0df (patch)
treee51f8bffecb54516e75c9b96e56c24f3a890e1fa
parent9d84c9eb7e7bfc3845cf8fb58b5045d88bb01b09 (diff)
downloadpaludis-a5390f64190d646bf0cfdc488c396bbd9c33b0df.tar.gz
paludis-a5390f64190d646bf0cfdc488c396bbd9c33b0df.tar.xz
change tests to check for NoSuchRepositoryError
-rw-r--r--paludis/package_database_TEST.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/package_database_TEST.cc b/paludis/package_database_TEST.cc
index 7005ae2..fe71f8f 100644
--- a/paludis/package_database_TEST.cc
+++ b/paludis/package_database_TEST.cc
@@ -49,14 +49,14 @@ namespace test_cases
FakeRepository::Pointer r1(new FakeRepository(RepositoryName("repo1")));
FakeRepository::Pointer r2(new FakeRepository(RepositoryName("repo2")));
- TEST_CHECK_THROWS(p.fetch_repository(RepositoryName("repo1")), PackageDatabaseLookupError);
- TEST_CHECK_THROWS(p.fetch_repository(RepositoryName("repo2")), PackageDatabaseLookupError);
+ TEST_CHECK_THROWS(p.fetch_repository(RepositoryName("repo1")), NoSuchRepositoryError);
+ TEST_CHECK_THROWS(p.fetch_repository(RepositoryName("repo2")), NoSuchRepositoryError);
p.add_repository(r1);
TEST_CHECK(p.fetch_repository(RepositoryName("repo1")));
TEST_CHECK_EQUAL(p.fetch_repository(RepositoryName("repo1"))->name(),
RepositoryName("repo1"));
- TEST_CHECK_THROWS(p.fetch_repository(RepositoryName("repo2")), PackageDatabaseLookupError);
+ TEST_CHECK_THROWS(p.fetch_repository(RepositoryName("repo2")), NoSuchRepositoryError);
TEST_CHECK_THROWS(p.add_repository(r1), DuplicateRepositoryError);