Update command/pr_test.go

Co-authored-by: Billy Griffin <5091167+billygriffin@users.noreply.github.com>
This commit is contained in:
Corey Johnson 2020-05-18 14:40:04 -07:00 committed by GitHub
parent be927b34ae
commit fde5409a70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1156,7 +1156,7 @@ func TestPRReady_closed(t *testing.T) {
t.Fatalf("expected an error running command `pr ready` on a review that is closed!: %v", err)
}
r := regexp.MustCompile(`Pull request #446 is closed and can't be marked "ready for review"`)
r := regexp.MustCompile(`Pull request #446 is closed. Only draft pull requests can be marked as "ready for review"`)
if !r.MatchString(err.Error()) {
t.Fatalf("output did not match regexp /%s/\n> output\n%q\n", r, err.Error())