Browse Source

use new epgsql 3.2.0

Yuriy Zhloba 9 years ago
parent
commit
f7fad0fa6a
2 changed files with 10 additions and 6 deletions
  1. 3 4
      rebar.config
  2. 7 2
      test/epgsql_pool_SUITE.erl

+ 3 - 4
rebar.config

@@ -1,12 +1,11 @@
 %%-*- mode: erlang -*-
 
 {erl_opts, [debug_info,
-            warn_missing_spec,
-            {i, "include"} %% need for emacs work properly with include_lib
+            warn_missing_spec
            ]}.
 
 {deps, [
-        {pooler, ".*", {git, "https://github.com/seth/pooler", {ref, "b6c522a67a1d067122705ef725535a8664dd8514"}}},
-        {epgsql, ".*", {git, "https://github.com/epgsql/epgsql", {tag, "3.1.0"}}},
+        {pooler, ".*", {git, "https://github.com/seth/pooler", {tag, "1.5.2"}}},
+        {epgsql, ".*", {git, "https://github.com/epgsql/epgsql", {tag, "3.2.0"}}},
         {herd, ".*", {git, "https://github.com/wgnet/herd", {tag, "1.3"}}}
        ]}.

+ 7 - 2
test/epgsql_pool_SUITE.erl

@@ -203,8 +203,13 @@ validate_connection_params_test(_Config) ->
 
     Params3 = #epgsql_connection_params{host = "localhost", port = 5432,
                                         username = "test", password = "test", database = "some"},
-    Res3 = epgsql_pool:validate_connection_params(Params3),
+    {error, Res3} = epgsql_pool:validate_connection_params(Params3),
     ct:pal("Res3: ~p", [Res3]),
-    ?assertEqual({error,{error,fatal,<<"3D000">>,<<"database \"some\" does not exist">>, []}}, Res3),
+    ?assertMatch(#error{
+                    severity = fatal,
+                    code = <<"3D000">>,
+                    codename = invalid_catalog_name,
+                    message = <<"database \"some\" does not exist">>
+                   }, Res3),
 
     ok.