Skip to content
Snippets Groups Projects
Commit 6bd5a4c3 authored by ale's avatar ale
Browse files

Mark tests as parallelizable

parent e811f113
No related branches found
No related tags found
1 merge request!3Mark tests as parallelizable
Pipeline #12212 passed
......@@ -14,6 +14,8 @@ import (
)
func TestDebug(t *testing.T) {
t.Parallel()
n := newTestNet()
defer n.Close()
for i := 0; i < 5; i++ {
......
......@@ -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++ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment