Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
tools
enq
Commits
6bd5a4c3
Commit
6bd5a4c3
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Mark tests as parallelizable
parent
e811f113
No related branches found
No related tags found
1 merge request
!3
Mark tests as parallelizable
Pipeline
#12212
passed
4 years ago
Stage: test
Stage: build_pkgsrc
Stage: build_pkg
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
engine/debug_test.go
+2
-0
2 additions, 0 deletions
engine/debug_test.go
engine/enq_test.go
+12
-0
12 additions, 0 deletions
engine/enq_test.go
with
14 additions
and
0 deletions
engine/debug_test.go
+
2
−
0
View file @
6bd5a4c3
...
...
@@ -14,6 +14,8 @@ import (
)
func
TestDebug
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
This diff is collapsed.
Click to expand it.
engine/enq_test.go
+
12
−
0
View file @
6bd5a4c3
...
...
@@ -276,6 +276,8 @@ func failFunc(task *pb.Task) ([]byte, error) {
}
func
TestQueue
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
@@ -339,6 +341,8 @@ func TestQueue(t *testing.T) {
}
func
TestQueue_SameShard
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
@@ -397,6 +401,8 @@ func TestQueue_SameShard(t *testing.T) {
}
func
TestQueue_Fail
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
@@ -450,6 +456,8 @@ func TestQueue_Fail(t *testing.T) {
}
func
TestQueue_Cancel
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
@@ -551,6 +559,8 @@ func TestQueue_Cancel(t *testing.T) {
// TODO: This does not yet test *failure*!
func
TestQueue_IndependentFailure
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
@@ -630,6 +640,8 @@ func TestQueue_IndependentFailure(t *testing.T) {
}
func
TestQuery
(
t
*
testing
.
T
)
{
t
.
Parallel
()
n
:=
newTestNet
()
defer
n
.
Close
()
for
i
:=
0
;
i
<
5
;
i
++
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment