File tree 3 files changed +3
-13
lines changed
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ jobs:
102
102
fail-fast : false
103
103
matrix :
104
104
go-version : [1.22.x]
105
- ydb-version : [24.1 ]
105
+ ydb-version : [nightly ]
106
106
services :
107
107
ydb :
108
108
image : ydbplatform/local-ydb:${{ matrix.ydb-version }}
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import (
18
18
19
19
"github.com/ydb-platform/ydb-go-sdk/v3"
20
20
"github.com/ydb-platform/ydb-go-sdk/v3/credentials"
21
- "github.com/ydb-platform/ydb-go-sdk/v3/internal/version"
22
21
)
23
22
24
23
func TestDatabaseSqlStaticCredentials (t * testing.T ) {
@@ -37,11 +36,7 @@ func TestDatabaseSqlStaticCredentials(t *testing.T) {
37
36
t .Fatal (err )
38
37
}
39
38
40
- if version .Gte (os .Getenv ("YDB_VERSION" ), "23.3" ) {
41
- u .User = url .UserPassword ("root" , "1234" )
42
- } else {
43
- u .User = url .User ("root" )
44
- }
39
+ u .User = url .UserPassword ("root" , "1234" )
45
40
46
41
t .Run ("sql.Open" , func (t * testing.T ) {
47
42
var db * sql.DB
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import (
17
17
18
18
"github.com/ydb-platform/ydb-go-sdk/v3"
19
19
"github.com/ydb-platform/ydb-go-sdk/v3/credentials"
20
- "github.com/ydb-platform/ydb-go-sdk/v3/internal/version"
21
20
)
22
21
23
22
func TestStaticCredentials (t * testing.T ) {
@@ -36,11 +35,7 @@ func TestStaticCredentials(t *testing.T) {
36
35
t .Fatal (err )
37
36
}
38
37
39
- if version .Gte (os .Getenv ("YDB_VERSION" ), "23.3" ) {
40
- u .User = url .UserPassword ("root" , "1234" )
41
- } else {
42
- u .User = url .User ("root" )
43
- }
38
+ u .User = url .UserPassword ("root" , "1234" )
44
39
45
40
staticCredentials := credentials .NewStaticCredentials (u .User .Username (), func () string {
46
41
password , _ := u .User .Password ()
You can’t perform that action at this time.
0 commit comments