Fixed task group validation tests

This commit is contained in:
Diptanu Choudhury 2016-09-27 17:57:05 -07:00
parent 5b0ca4ec68
commit 9b98d70aec
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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") {