浏览代码

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

Abraham Elmahrek 11 年之前
父节点
当前提交
7bd57f0
共有 1 个文件被更改,包括 2 次插入1 次删除
  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")
     assert_true("test" in response.context["tables"])
 
+    # Should default to "default" database
     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
     response = self.client.get("/metastore/table/default/test")