Merge pull request #20167 from hashicorp/t-cmd-fix-regex

command: Fix TestUiHookPostApply_emptyState
vendor-bump-hil
Radek Simko 7 years ago committed by GitHub
commit 0d4839920e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,7 +188,7 @@ func TestUiHookPostApply_emptyState(t *testing.T) {
t.Fatalf("Expected hook to continue, given: %#v", action)
}
expectedRegexp := "^data.google_compute_zones.available: Destruction complete after -?[a-z0-9.]+\n$"
expectedRegexp := "^data.google_compute_zones.available: Destruction complete after -?[a-z0-9µ.]+\n$"
output := ui.OutputWriter.String()
if matched, _ := regexp.MatchString(expectedRegexp, output); !matched {
t.Fatalf("Output didn't match regexp.\nExpected: %q\nGiven: %q", expectedRegexp, output)

Loading…
Cancel
Save