Skip to content

Commit

Permalink
fix package alias sql2 -> tableSql
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Oct 31, 2024
1 parent 5212602 commit 9f5ff41
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/integration/database_sql_with_tx_control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/ydb-platform/ydb-go-sdk/v3"
sql2 "github.com/ydb-platform/ydb-go-sdk/v3/internal/table/conn"
tableSql "github.com/ydb-platform/ydb-go-sdk/v3/internal/table/conn"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
"github.com/ydb-platform/ydb-go-sdk/v3/retry"
"github.com/ydb-platform/ydb-go-sdk/v3/table"
Expand All @@ -31,7 +31,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
var hookCalled bool
require.NoError(t, retry.Do(
ydb.WithTxControl(
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
hookCalled = true
require.Equal(t, table.SerializableReadWriteTxControl().Desc(), txControl.Desc())
}),
Expand All @@ -49,7 +49,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
var hookCalled bool
require.NoError(t, retry.Do(
ydb.WithTxControl(
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
hookCalled = true
require.Equal(t, table.SerializableReadWriteTxControl().Desc(), txControl.Desc())
}),
Expand All @@ -67,7 +67,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
var hookCalled bool
require.NoError(t, retry.Do(
ydb.WithTxControl(
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
hookCalled = true
require.Equal(t, table.SnapshotReadOnlyTxControl().Desc(), txControl.Desc())
}),
Expand All @@ -85,7 +85,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
var hookCalled bool
require.NoError(t, retry.Do(
ydb.WithTxControl(
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
hookCalled = true
require.Equal(t, table.StaleReadOnlyTxControl().Desc(), txControl.Desc())
}),
Expand All @@ -103,7 +103,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
var hookCalled bool
require.NoError(t, retry.Do(
ydb.WithTxControl(
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
hookCalled = true
require.Equal(t, table.OnlineReadOnlyTxControl().Desc(), txControl.Desc())
}),
Expand All @@ -121,7 +121,7 @@ func TestDatabaseSqlWithTxControl(t *testing.T) {
var hookCalled bool
require.NoError(t, retry.Do(
ydb.WithTxControl(
sql2.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
tableSql.WithTxControlHook(ctx, func(txControl *table.TransactionControl) {
hookCalled = true
require.Equal(t, table.OnlineReadOnlyTxControl(table.WithInconsistentReads()).Desc(), txControl.Desc())
}),
Expand Down

0 comments on commit 9f5ff41

Please sign in to comment.