From 2b2571eb2309301622827fab9268b896af8d36a3 Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Fri, 1 Mar 2024 16:04:24 -0500 Subject: [PATCH] Fix breaking test for PR/issue # change --- pkg/cmd/pr/reopen/reopen_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/pr/reopen/reopen_test.go b/pkg/cmd/pr/reopen/reopen_test.go index 3a4f1860f..856e19172 100644 --- a/pkg/cmd/pr/reopen/reopen_test.go +++ b/pkg/cmd/pr/reopen/reopen_test.go @@ -71,7 +71,7 @@ func TestPRReopen(t *testing.T) { output, err := runCommand(http, true, "123") assert.NoError(t, err) assert.Equal(t, "", output.String()) - assert.Equal(t, "✓ Reopened pull request #123 (The title of the PR)\n", output.Stderr()) + assert.Equal(t, "✓ Reopened pull request OWNER/REPO#123 (The title of the PR)\n", output.Stderr()) } func TestPRReopen_alreadyOpen(t *testing.T) { @@ -88,7 +88,7 @@ func TestPRReopen_alreadyOpen(t *testing.T) { output, err := runCommand(http, true, "123") assert.NoError(t, err) assert.Equal(t, "", output.String()) - assert.Equal(t, "! Pull request #123 (The title of the PR) is already open\n", output.Stderr()) + assert.Equal(t, "! Pull request OWNER/REPO#123 (The title of the PR) is already open\n", output.Stderr()) } func TestPRReopen_alreadyMerged(t *testing.T) { @@ -105,7 +105,7 @@ func TestPRReopen_alreadyMerged(t *testing.T) { output, err := runCommand(http, true, "123") assert.EqualError(t, err, "SilentError") assert.Equal(t, "", output.String()) - assert.Equal(t, "X Pull request #123 (The title of the PR) can't be reopened because it was already merged\n", output.Stderr()) + assert.Equal(t, "X Pull request OWNER/REPO#123 (The title of the PR) can't be reopened because it was already merged\n", output.Stderr()) } func TestPRReopen_withComment(t *testing.T) { @@ -141,5 +141,5 @@ func TestPRReopen_withComment(t *testing.T) { output, err := runCommand(http, true, "123 --comment 'reopening comment'") assert.NoError(t, err) assert.Equal(t, "", output.String()) - assert.Equal(t, "✓ Reopened pull request #123 (The title of the PR)\n", output.Stderr()) + assert.Equal(t, "✓ Reopened pull request OWNER/REPO#123 (The title of the PR)\n", output.Stderr()) }