Skip to content

Commit d7b7081

Browse files
committed
test: debugging
1 parent 20dc742 commit d7b7081

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ jobs:
273273
cd "${SRCDIR}"
274274
make deps
275275
276+
- name: Setup tmate session
277+
uses: mxschmitt/action-tmate@v3
278+
276279
- name: Run regression tests
277280
run: |
278281
cd "${SRCDIR}"

pool/connection_pool_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,9 @@ func TestConnectionHandlerOpenUpdateClose(t *testing.T) {
11261126
ctx, cancel := test_helpers.GetPoolConnectContext()
11271127
defer cancel()
11281128
connPool, err := pool.ConnectWithOpts(ctx, poolInstances, poolOpts)
1129+
for _, err := range h.errs {
1130+
t.Logf("Unexpected error: %s", err)
1131+
}
11291132
require.Nilf(t, err, "failed to connect")
11301133
require.NotNilf(t, connPool, "conn is nil after Connect")
11311134

test_helpers/pool_helper.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ func SetInstanceRO(ctx context.Context, dialer tarantool.Dialer, connOpts tarant
202202

203203
req := tarantool.NewCallRequest("box.cfg").
204204
Args([]interface{}{map[string]bool{"read_only": isReplica}})
205-
if _, err := conn.Do(req).Get(); err != nil {
206-
return err
205+
if resp, err := conn.Do(req).Get(); err != nil {
206+
// return err
207+
return fmt.Errorf("%w: resp: %v", err, resp)
207208
}
208209

209210
return nil

0 commit comments

Comments
 (0)