look for new error output
This commit is contained in:
parent
4893fcc24f
commit
b14677bd9a
|
@ -2,6 +2,7 @@ package terraform
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -861,7 +862,7 @@ func TestContext2Refresh_unknownProvider(t *testing.T) {
|
||||||
t.Fatal("successfully created context; want error")
|
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)
|
t.Fatalf("wrong error: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue