fix test panic due to test data unmarshalling

This commit is contained in:
Lucian Jones 2019-06-25 14:47:29 +12:00
parent 3650a5d21b
commit 27404eb3e6

View file

@ -482,11 +482,22 @@ var (
}
dummyYamlSkipBranch = &core.Config{
Data: "kind: pipeline\ntrigger: { branch: { exclude: master } }",
Data: `
kind: pipeline
trigger:
branch:
exclude:
- master`,
}
dummyYamlSkipEvent = &core.Config{
Data: "kind: pipeline\ntrigger: { event: { exclude: push } }",
Data: `
kind: pipeline
trigger:
event:
exclude:
- push`,
}
}
ignoreBuildFields = cmpopts.IgnoreFields(core.Build{},