Anton Lebedevich 13 лет назад
Родитель
Сommit
9db01c7918
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      test_src/pgsql_incremental.erl

+ 2 - 2
test_src/pgsql_incremental.erl

@@ -115,7 +115,7 @@ close(C, Type, Name) ->
 
 sync(C) ->
     Ref = ipgsql:sync(C),
-    receive_atom(C, Ref, done, ok).
+    receive_atom(C, Ref, ok, ok).
 
 %% misc helper functions
 with_transaction(C, F) ->
@@ -218,7 +218,7 @@ receive_atom(C, Ref, Receive, Return) ->
 
 sync_on_error(C, Error = {error, _}) ->
     Ref = ipgsql:sync(C),
-    receive_atom(C, Ref, done, ok),
+    receive_atom(C, Ref, ok, ok),
     Error;
 
 sync_on_error(_C, R) ->