Skip to content

Commit a73501e

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ jobs:
107107
- name: Run regression tests
108108
run: make test
109109

110+
- name: Setup tmate session
111+
uses: mxschmitt/action-tmate@v3
112+
110113
- name: Run race tests
111114
run: make testrace
112115

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)