workflow-pr: test fixes
This commit is contained in:
parent
1d7d0a7b43
commit
2949e23b11
@ -162,7 +162,9 @@ func TestSyncPR(t *testing.T) {
|
|||||||
t.Error(b.String())
|
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))
|
os.RemoveAll(path.Join(git.GitPath, common.DefaultGitPrj))
|
||||||
mock.EXPECT().GetAssociatedPrjGitPR(event).Return(&models.PullRequest{
|
mock.EXPECT().GetAssociatedPrjGitPR(event).Return(&models.PullRequest{
|
||||||
Title: "some pull request",
|
Title: "some pull request",
|
||||||
@ -195,7 +197,7 @@ func TestSyncPR(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(b.String(), "commitID already match - nothing to do") {
|
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())
|
t.Log(b.String())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user