Browse Source

[metastore] tests should be aware of database fallback to 'default'

Abraham Elmahrek 11 years ago
parent
commit
7bd57f07b6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      apps/metastore/src/metastore/tests.py

+ 2 - 1
apps/metastore/src/metastore/tests.py

@@ -78,8 +78,9 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
     response = self.client.get("/metastore/tables/default")
     response = self.client.get("/metastore/tables/default")
     assert_true("test" in response.context["tables"])
     assert_true("test" in response.context["tables"])
 
 
+    # Should default to "default" database
     response = self.client.get("/metastore/tables/not_there")
     response = self.client.get("/metastore/tables/not_there")
-    assert_false("test" in response.context["tables"])
+    assert_true("test" in response.context["tables"])
 
 
     # And have detail
     # And have detail
     response = self.client.get("/metastore/table/default/test")
     response = self.client.get("/metastore/table/default/test")