From 2949e23b114125b680482f4cadd44eb77a0a0f4da79e3e84cfcd93b7c980cb41 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 13 Nov 2024 16:21:39 +0100 Subject: [PATCH] workflow-pr: test fixes --- workflow-pr/pr_sync_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/workflow-pr/pr_sync_test.go b/workflow-pr/pr_sync_test.go index 297c552..223164f 100644 --- a/workflow-pr/pr_sync_test.go +++ b/workflow-pr/pr_sync_test.go @@ -162,7 +162,9 @@ func TestSyncPR(t *testing.T) { t.Error(b.String()) } - // does nothing on next sync of already synced data -- PR is updated + /* + * does nothing on next sync of already synced data -- PR is updated + */ os.RemoveAll(path.Join(git.GitPath, common.DefaultGitPrj)) mock.EXPECT().GetAssociatedPrjGitPR(event).Return(&models.PullRequest{ Title: "some pull request", @@ -195,7 +197,7 @@ func TestSyncPR(t *testing.T) { } if !strings.Contains(b.String(), "commitID already match - nothing to do") { - os.CopyFS("/tmp/test", os.DirFS(git.GitPath)) + // os.CopyFS("/tmp/test", os.DirFS(git.GitPath)) t.Log(b.String()) } })