Skip to content

Commit 0c0151f

Browse files
committed
WIP: try to reproduce Example_connectionPool
1 parent 45a88ec commit 0c0151f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Makefile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,14 @@ golangci-lint:
4242
golangci-lint run -E goimports -D errcheck
4343

4444
.PHONY: test
45-
test:
46-
@echo "Running all packages tests"
47-
go clean -testcache
48-
go test -tags "$(TAGS)" ./... -v -p 1
45+
test: test-queue
4946

5047
.PHONY: testdata
5148
testdata:
5249
(cd ./testdata; ./generate.sh)
5350

5451
.PHONY: testrace
55-
testrace:
56-
@echo "Running all packages tests with data race detector"
57-
go clean -testcache
58-
go test -race -tags "$(TAGS)" ./... -v -p 1
52+
testrace: testrace-queue
5953

6054
.PHONY: test-connection-pool
6155
test-connection-pool:
@@ -84,9 +78,16 @@ test-multi:
8478
.PHONY: test-queue
8579
test-queue:
8680
@echo "Running tests in queue package"
87-
cd ./queue/ && tarantool -e "require('queue')"
81+
cd ./queue/testdata && tarantool -e "require('queue')"
82+
go clean -testcache
83+
for i in `seq 1 100`; do go test -tags "$(TAGS)" ./queue/ -run Example_connectionPool -count 1 -v -p 1 || exit 1; done
84+
85+
.PHONY: testrace-queue
86+
testrace-queue:
87+
@echo "Running tests in queue package"
88+
cd ./queue/testdata && tarantool -e "require('queue')"
8889
go clean -testcache
89-
go test -tags "$(TAGS)" ./queue/ -v -p 1
90+
for i in `seq 1 100`; do go test -race -tags "$(TAGS)" ./queue/ -run Example_connectionPool -count 1 -v -p 1 || exit 1; done
9091

9192
.PHONY: test-uuid
9293
test-uuid:

0 commit comments

Comments
 (0)