workflow-pr: test fixes

This commit is contained in:
Adam Majer 2024-11-13 16:21:39 +01:00
parent 1d7d0a7b43
commit 2949e23b11

View File

@ -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())
}
})