File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -42,20 +42,14 @@ golangci-lint:
42
42
golangci-lint run -E goimports -D errcheck
43
43
44
44
.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
49
46
50
47
.PHONY : testdata
51
48
testdata :
52
49
(cd ./testdata; ./generate.sh)
53
50
54
51
.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
59
53
60
54
.PHONY : test-connection-pool
61
55
test-connection-pool :
@@ -84,9 +78,16 @@ test-multi:
84
78
.PHONY : test-queue
85
79
test-queue :
86
80
@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')"
88
89
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
90
91
91
92
.PHONY : test-uuid
92
93
test-uuid :
You can’t perform that action at this time.
0 commit comments