Skip to content

tests: queue tests fail #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/reusable_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ jobs:
go clean -testcache && go test -v
kill $TNT_PID

# TODO(ylobankov): Uncomment this when tarantool/go-tarantool#115 is resolved.
# - name: Run queue tests
# working-directory: ./queue
# run: |
# mkdir snap xlog
# tarantoolctl rocks install queue 1.1.0
# TNT_PID=$(tarantool ./config.lua > tarantool.log 2>&1 & echo $!)
# go clean -testcache && go test -v
# kill $TNT_PID
- name: Run queue tests
working-directory: ./queue
run: |
mkdir snap xlog
tarantoolctl rocks install queue 1.1.0
TNT_PID=$(tarantool ./config.lua > tarantool.log 2>&1 & echo $!)
go clean -testcache && go test -v
kill $TNT_PID

- name: Run uuid tests
working-directory: ./uuid
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ jobs:
go clean -testcache && go test -v
kill $TNT_PID

# TODO(ylobankov): Uncomment this when tarantool/go-tarantool#115 is resolved.
# - name: Run queue tests
# working-directory: ./queue
# run: |
# mkdir snap xlog
# tarantoolctl rocks install queue 1.1.0
# TNT_PID=$(tarantool ./config.lua > tarantool.log 2>&1 & echo $!)
# go clean -testcache && go test -v
# kill $TNT_PID
- name: Run queue tests
working-directory: ./queue
run: |
rm -rf snap
rm -rf xlog
mkdir snap xlog
tarantoolctl rocks install queue 1.1.0
TNT_PID=$(tarantool ./config.lua > tarantool.log 2>&1 & echo $!)
go clean -testcache && go test -v
kill $TNT_PID

- name: Run uuid tests
working-directory: ./uuid
Expand Down
20 changes: 19 additions & 1 deletion queue/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,30 @@ box.schema.func.create('queue.tube.test_queue:delete')
box.schema.func.create('queue.tube.test_queue:release')
box.schema.func.create('queue.tube.test_queue:bury')
box.schema.func.create('queue.statistics')
box.schema.user.grant('test', 'create', 'space')
box.schema.user.grant('test', 'write', 'space', '_schema')
box.schema.user.grant('test', 'write', 'space', '_space')
box.schema.user.grant('test', 'read,write', 'space', '_space_sequence')
box.schema.user.grant('test', 'write', 'space', '_index')
box.schema.user.grant('test', 'read, write', 'space', '_queue_session_ids')
box.schema.user.grant('test', 'execute', 'universe')
box.schema.user.grant('test', 'read,write', 'space', '_queue')
box.schema.user.grant('test', 'read,write', 'space', '_schema')
box.schema.user.grant('test', 'read,write', 'space', '_space')
box.schema.user.grant('test', 'read,write', 'space', '_index')
box.schema.user.grant('test', 'read,write', 'space', '_queue_consumers')
box.schema.user.grant('test', 'read,write', 'space', '_priv')
box.schema.user.grant('test', 'read,write', 'space', '_queue_taken')
box.schema.user.grant('test', 'read,write', 'space', '_queue_taken_2')
if box.space._trigger ~= nil then
box.schema.user.grant('test', 'read', 'space', '_trigger')
end
if box.space._fk_constraint ~= nil then
box.schema.user.grant('test', 'read', 'space', '_fk_constraint')
end
if box.space._ck_constraint ~= nil then
box.schema.user.grant('test', 'read', 'space', '_ck_constraint')
end
if box.space._func_index ~= nil then
box.schema.user.grant('test', 'read', 'space', '_func_index')
end
end)
2 changes: 1 addition & 1 deletion queue/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var server = "127.0.0.1:3013"
var opts = Opts{
Timeout: 500 * time.Millisecond,
Timeout: 2500 * time.Millisecond,
User: "test",
Pass: "test",
//Concurrency: 32,
Expand Down