Skip to content

Commit

Permalink
mr_reopen_test: fix MR number
Browse files Browse the repository at this point in the history
The MR 19, that was being used as test MR for close/reopen operations,
had as source target a branch from my personal fork that I mistakenly
deleted. With that, the MR cannot be reopened anymore and, therefore,
the tests were failing.

This patch use the new MR created for the same purpose.

Signed-off-by: Bruno Meneguele <[email protected]>
  • Loading branch information
bmeneg committed Jun 11, 2021
1 parent 2000253 commit 15929ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/mr_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func Test_mrFilterByTargetBranch(t *testing.T) {
}

var (
latestCreatedTestMR = "!329 MR for assign and review commands"
latestCreatedTestMR = "!740 MR to test close/reopen"
latestUpdatedTestMR = "!329 MR for assign and review commands"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/mr_reopen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Test_mrCloseReopen(t *testing.T) {
{
desc: "close-open",
opt: "close",
expected: "Merge Request !19 closed",
expected: "Merge Request !740 closed",
},
{
desc: "close-closed",
Expand All @@ -31,15 +31,15 @@ func Test_mrCloseReopen(t *testing.T) {
{
desc: "reopen-closed",
opt: "reopen",
expected: "Merge Request !19 reopened",
expected: "Merge Request !740 reopened",
},
}

repo := copyTestRepo(t)
for _, test := range tests {
test := test
t.Run(test.desc, func(t *testing.T) {
cmd := exec.Command(labBinaryPath, "mr", test.opt, "19")
cmd := exec.Command(labBinaryPath, "mr", test.opt, "740")
cmd.Dir = repo

b, err := cmd.CombinedOutput()
Expand Down

0 comments on commit 15929ef

Please sign in to comment.