Fix breaking test for PR/issue # change
This commit is contained in:
parent
bcdc917f08
commit
2b2571eb23
1 changed files with 4 additions and 4 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue