Fixed task group validation tests
This commit is contained in:
parent
5b0ca4ec68
commit
9b98d70aec
|
@ -1630,7 +1630,7 @@ func (tg *TaskGroup) Validate() error {
|
|||
mErr.Errors = append(mErr.Errors, err)
|
||||
}
|
||||
} else {
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("Task Group %v should have a ephemeral disk object", tg.Name))
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("Task Group %v should have an ephemeral disk object", tg.Name))
|
||||
}
|
||||
|
||||
// Check for duplicate tasks
|
||||
|
|
|
@ -345,7 +345,7 @@ func TestTaskGroup_Validate(t *testing.T) {
|
|||
|
||||
err = tg.Validate()
|
||||
mErr = err.(*multierror.Error)
|
||||
if !strings.Contains(mErr.Errors[0].Error(), "should have a local disk object") {
|
||||
if !strings.Contains(mErr.Errors[0].Error(), "should have an ephemeral disk object") {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
if !strings.Contains(mErr.Errors[1].Error(), "2 redefines 'web' from task 1") {
|
||||
|
|
Loading…
Reference in a new issue