From d0d105a6812d340a64084323eb3b5a1618f77f0b Mon Sep 17 00:00:00 2001 From: ruslandoga <67764432+ruslandoga@users.noreply.github.com> Date: Mon, 18 Nov 2024 19:05:45 +0700 Subject: [PATCH] eh --- lib/ch/connection.ex | 5 ++++- test/ch/faults_test.exs | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/ch/connection.ex b/lib/ch/connection.ex index ecab30d..8f7ca82 100644 --- a/lib/ch/connection.ex +++ b/lib/ch/connection.ex @@ -71,7 +71,10 @@ defmodule Ch.Connection do @impl true @spec checkout(conn) :: {:ok, conn} - def checkout(conn), do: {:ok, conn} + def checkout(conn) do + IO.inspect(conn.socket, label: "Ch.checkout") + {:ok, conn} + end # we "support" these four tx callbacks for Repo.checkout # even though ClickHouse doesn't support txs diff --git a/test/ch/faults_test.exs b/test/ch/faults_test.exs index 0ba6d21..ee85e63 100644 --- a/test/ch/faults_test.exs +++ b/test/ch/faults_test.exs @@ -372,6 +372,12 @@ defmodule Ch.FaultsTest do :ok = :gen_tcp.send(mint, response) :ok = :gen_tcp.close(mint) + IO.puts(""" + ---------------------------- + story starts here ! + ---------------------------- + """) + # reconnect {:ok, mint} = :gen_tcp.accept(listen)