From 25cf48d4a491bdd8b6a6fe14676c4822d71a56ae Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Fri, 4 Sep 2015 00:02:30 +0200 Subject: [PATCH] Raise min message so we don't have to validate notices --- test/CDB_StatsTest.sql | 5 ++++- test/CDB_StatsTest_expect | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/CDB_StatsTest.sql b/test/CDB_StatsTest.sql index 5bfb5dc..9cb6bc2 100644 --- a/test/CDB_StatsTest.sql +++ b/test/CDB_StatsTest.sql @@ -1,5 +1,6 @@ -- continuous uniform distribution has kurtosis = -6/5, skewness = 0.0 -- http://mathworld.wolfram.com/UniformDistribution.html +set client_min_messages to ERROR; With dist As ( SELECT random()::numeric As val @@ -10,4 +11,6 @@ SELECT -- does random dist values match within 1% of known values abs(CDB_Kurtosis(array_agg(val)) + 1.20) < 1e-2 As kurtosis, abs(CDB_Skewness(array_agg(val)) - 0) < 1e-2 As skewness -FROM dist \ No newline at end of file +FROM dist; + +set client_min_messages to NOTICE; diff --git a/test/CDB_StatsTest_expect b/test/CDB_StatsTest_expect index c1a8116..fdc125d 100644 --- a/test/CDB_StatsTest_expect +++ b/test/CDB_StatsTest_expect @@ -1 +1,3 @@ -true|true +SET +t|t +SET