From 15929ef80d4fc3bcdcaf4fef0b67ab57a3c8e0f9 Mon Sep 17 00:00:00 2001 From: Bruno Meneguele Date: Fri, 11 Jun 2021 12:29:16 -0300 Subject: [PATCH] mr_reopen_test: fix MR number 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 --- cmd/mr_list_test.go | 2 +- cmd/mr_reopen_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/mr_list_test.go b/cmd/mr_list_test.go index 32782ab7c..7cfe3269b 100644 --- a/cmd/mr_list_test.go +++ b/cmd/mr_list_test.go @@ -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" ) diff --git a/cmd/mr_reopen_test.go b/cmd/mr_reopen_test.go index 231e615f4..c6a4a042c 100644 --- a/cmd/mr_reopen_test.go +++ b/cmd/mr_reopen_test.go @@ -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", @@ -31,7 +31,7 @@ func Test_mrCloseReopen(t *testing.T) { { desc: "reopen-closed", opt: "reopen", - expected: "Merge Request !19 reopened", + expected: "Merge Request !740 reopened", }, } @@ -39,7 +39,7 @@ func Test_mrCloseReopen(t *testing.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()