look for new error output

This commit is contained in:
James Bardin 2017-06-22 15:37:32 -04:00
parent 4893fcc24f
commit b14677bd9a
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package terraform
import (
"reflect"
"regexp"
"sort"
"strings"
"sync"
@ -861,7 +862,7 @@ func TestContext2Refresh_unknownProvider(t *testing.T) {
t.Fatal("successfully created context; want error")
}
if !strings.Contains(err.Error(), "Can't satisfy provider requirements") {
if !regexp.MustCompile(`provider ".+" is not available`).MatchString(err.Error()) {
t.Fatalf("wrong error: %s", err)
}
}