Skip to content

Commit 8ea808e

Browse files
Speshal71viciious
authored andcommitted
try fix ci
1 parent fbe500c commit 8ea808e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
2222
build:
2323
name: Test Go ${{ matrix.go-version }} / Tarantool ${{ matrix.tarantool-version }}
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-22.04
2525
# See https://github.com/Dart-Code/Dart-Code/pull/2375
2626
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
2727
strategy:

call17_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestCall17(t *testing.T) {
1414
tarantoolConfig := `
1515
local s = box.schema.space.create('tester', {id = 42})
1616
s:create_index('tester_id', {
17-
type = 'hash',
17+
type = 'tree',
1818
parts = {1, 'NUM'}
1919
})
2020
s:create_index('tester_name', {
@@ -31,7 +31,7 @@ func TestCall17(t *testing.T) {
3131
t = s:insert({3, 'Length', 93})
3232
3333
function sel_all()
34-
return box.space.tester:select{}
34+
return box.space.tester:select({}, {iterator = "ALL"})
3535
end
3636
3737
function sel_name(tester_id, name)

call_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestCall(t *testing.T) {
1313
tarantoolConfig := `
1414
local s = box.schema.space.create('tester', {id = 42})
1515
s:create_index('tester_id', {
16-
type = 'hash',
16+
type = 'tree',
1717
parts = {1, 'NUM'}
1818
})
1919
s:create_index('tester_name', {
@@ -30,7 +30,7 @@ func TestCall(t *testing.T) {
3030
t = s:insert({3, 'Length', 93})
3131
3232
function sel_all()
33-
return box.space.tester:select{}
33+
return box.space.tester:select({}, {iterator = "ALL"})
3434
end
3535
3636
function sel_name(tester_id, name)

select_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ func TestSelect(t *testing.T) {
1212
tarantoolConfig := `
1313
local s = box.schema.space.create('tester', {id = 42})
1414
s:create_index('tester_id', {
15-
type = 'hash',
15+
type = 'tree',
1616
parts = {1, 'NUM'}
1717
})
1818
s:create_index('tester_name', {
19-
type = 'hash',
19+
type = 'tree',
2020
parts = {2, 'STR'}
2121
})
2222
s:create_index('id_name', {
@@ -158,9 +158,9 @@ func TestSelect(t *testing.T) {
158158
Iterator: IterAll,
159159
},
160160
[][]interface{}{
161-
{int64(2), "Music"},
162-
{int64(3), "Length", int64(93)},
163161
{int64(1), "First record"},
162+
{int64(3), "Length", int64(93)},
163+
{int64(2), "Music"},
164164
},
165165
)
166166
// iterate Eq using STR index

0 commit comments

Comments
 (0)