You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-16 08:46:30 +02:00
Make test execution parallel in server
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestFetchGithub(t *testing.T) {
|
func TestFetchGithub(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
github, err := github.New(github.Opts{URL: "https://github.com"})
|
github, err := github.New(github.Opts{URL: "https://github.com"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@@ -23,6 +23,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestMultilineEnvsubst(t *testing.T) {
|
func TestMultilineEnvsubst(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
Repo: &model.Repo{},
|
Repo: &model.Repo{},
|
||||||
Curr: &model.Build{
|
Curr: &model.Build{
|
||||||
@@ -57,6 +59,8 @@ pipeline:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestMultiPipeline(t *testing.T) {
|
func TestMultiPipeline(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
Repo: &model.Repo{},
|
Repo: &model.Repo{},
|
||||||
Curr: &model.Build{},
|
Curr: &model.Build{},
|
||||||
@@ -89,6 +93,8 @@ pipeline:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestDependsOn(t *testing.T) {
|
func TestDependsOn(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
Repo: &model.Repo{},
|
Repo: &model.Repo{},
|
||||||
Curr: &model.Build{},
|
Curr: &model.Build{},
|
||||||
@@ -133,6 +139,8 @@ depends_on:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestRunsOn(t *testing.T) {
|
func TestRunsOn(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
Repo: &model.Repo{},
|
Repo: &model.Repo{},
|
||||||
Curr: &model.Build{},
|
Curr: &model.Build{},
|
||||||
@@ -167,6 +175,8 @@ runs_on:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestBranchFilter(t *testing.T) {
|
func TestBranchFilter(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
Repo: &model.Repo{},
|
Repo: &model.Repo{},
|
||||||
Curr: &model.Build{Branch: "dev"},
|
Curr: &model.Build{Branch: "dev"},
|
||||||
@@ -211,6 +221,8 @@ pipeline:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestZeroSteps(t *testing.T) {
|
func TestZeroSteps(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
build := &model.Build{Branch: "dev"}
|
build := &model.Build{Branch: "dev"}
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
@@ -243,6 +255,8 @@ pipeline:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestZeroStepsAsMultiPipelineDeps(t *testing.T) {
|
func TestZeroStepsAsMultiPipelineDeps(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
build := &model.Build{Branch: "dev"}
|
build := &model.Build{Branch: "dev"}
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
@@ -289,6 +303,8 @@ depends_on: [ zerostep ]
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestZeroStepsAsMultiPipelineTransitiveDeps(t *testing.T) {
|
func TestZeroStepsAsMultiPipelineTransitiveDeps(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
build := &model.Build{Branch: "dev"}
|
build := &model.Build{Branch: "dev"}
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
@@ -341,6 +357,8 @@ depends_on: [ shouldbefiltered ]
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestTree(t *testing.T) {
|
func TestTree(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
build := &model.Build{}
|
build := &model.Build{}
|
||||||
|
|
||||||
b := procBuilder{
|
b := procBuilder{
|
||||||
|
Reference in New Issue
Block a user