Commit 7fa83d68 authored by Shinya Maeda's avatar Shinya Maeda

Use failed build

parent 4baca1ae
......@@ -167,10 +167,10 @@ func TestPrepareFailureOnBuildError(t *testing.T) {
RegisterExecutor("build-run-prepare-failure-on-build-error", &p)
successfulBuild, err := GetSuccessfulBuild()
failedBuild, err := GetFailedBuild()
assert.NoError(t, err)
build := &Build{
JobResponse: successfulBuild,
JobResponse: failedBuild,
Runner: &RunnerConfig{
RunnerSettings: RunnerSettings{
Executor: "build-run-prepare-failure-on-build-error",
......@@ -205,10 +205,10 @@ func TestPrepareFailureOnExecutionTimeout(t *testing.T) {
RegisterExecutor("build-run-prepare-failure-on-execution-timeout", &p)
successfulBuild, err := GetSuccessfulBuild()
failedBuild, err := GetFailedBuild()
assert.NoError(t, err)
build := &Build{
JobResponse: successfulBuild,
JobResponse: failedBuild,
Runner: &RunnerConfig{
RunnerSettings: RunnerSettings{
Executor: "build-run-prepare-failure-on-execution-timeout",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment