From 0e0ff2c67bf8b8aa55ef9cd92925c4573c7e1413 Mon Sep 17 00:00:00 2001 From: gordon chung Date: Wed, 24 Jun 2015 10:16:14 -0400 Subject: [PATCH] test error log - catch dummy error we load a dummy db in test which is expected to failed. it should be caught accordingly so it doesn't flood logs Change-Id: I9f5ce01619a963dbe3bb7936ac1ffd4ba06b25e2 Closes-Bug: #1468379 --- ceilometer/tests/test_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceilometer/tests/test_bin.py b/ceilometer/tests/test_bin.py index b9ff2d13..6cf1de06 100644 --- a/ceilometer/tests/test_bin.py +++ b/ceilometer/tests/test_bin.py @@ -226,7 +226,7 @@ class BinApiTestCase(base.BaseTestCase): self.paste, self.api_port)) - self.subp = self.run_api(content) + self.subp = self.run_api(content, err_pipe=True) response, content = self.get_response('v2/alarms') self.assertEqual(200, response.status)