Skip to content

Commit 661bab9

Browse files
committed
fix package alias sql2 -> tableSql
1 parent 9474655 commit 661bab9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/integration/database_sql_with_tx_control_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/require"
1212

1313
"github.com/ydb-platform/ydb-go-sdk/v3"
14-
sql2 "github.com/ydb-platform/ydb-go-sdk/v3/internal/table/conn"
14+
tableSql "github.com/ydb-platform/ydb-go-sdk/v3/internal/table/conn"
1515
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
1616
"github.com/ydb-platform/ydb-go-sdk/v3/retry"
1717
"github.com/ydb-platform/ydb-go-sdk/v3/table"
@@ -31,7 +31,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
3131
var hookCalled bool
3232
require.NoError(t, retry.Do(
3333
ydb.WithTxControl(
34-
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
34+
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
3535
hookCalled = true
3636
require.Equal(t, table.SerializableReadWriteTxControl().Desc(), txControl.Desc())
3737
}),
@@ -49,7 +49,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
4949
var hookCalled bool
5050
require.NoError(t, retry.Do(
5151
ydb.WithTxControl(
52-
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
52+
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
5353
hookCalled = true
5454
require.Equal(t, table.SerializableReadWriteTxControl().Desc(), txControl.Desc())
5555
}),
@@ -67,7 +67,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
6767
var hookCalled bool
6868
require.NoError(t, retry.Do(
6969
ydb.WithTxControl(
70-
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
70+
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
7171
hookCalled = true
7272
require.Equal(t, table.SnapshotReadOnlyTxControl().Desc(), txControl.Desc())
7373
}),
@@ -85,7 +85,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
8585
var hookCalled bool
8686
require.NoError(t, retry.Do(
8787
ydb.WithTxControl(
88-
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
88+
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
8989
hookCalled = true
9090
require.Equal(t, table.StaleReadOnlyTxControl().Desc(), txControl.Desc())
9191
}),
@@ -103,7 +103,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
103103
var hookCalled bool
104104
require.NoError(t, retry.Do(
105105
ydb.WithTxControl(
106-
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
106+
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
107107
hookCalled = true
108108
require.Equal(t, table.OnlineReadOnlyTxControl().Desc(), txControl.Desc())
109109
}),
@@ -121,7 +121,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
121121
var hookCalled bool
122122
require.NoError(t, retry.Do(
123123
ydb.WithTxControl(
124-
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
124+
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
125125
hookCalled = true
126126
require.Equal(t, table.OnlineReadOnlyTxControl(table.WithInconsistentReads()).Desc(), txControl.Desc())
127127
}),

0 commit comments

Comments
 (0)