Skip to content

Commit 579ef41

Browse files
committed
fix tests
1 parent 16f183e commit 579ef41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/migrations/github_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
410410
ID: 363017488,
411411
Content: "This is a good pull request.",
412412
TreePath: "README.md",
413+
DiffHunk: "@@ -1,2 +1,4 @@\n # test_repo\n Test repository for testing migration from github to gitea\n+",
413414
Position: 3,
414415
CommitID: "2be9101c543658591222acbee3eb799edfc3853d",
415416
PosterID: 81045,
@@ -442,6 +443,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
442443
ID: 363029944,
443444
Content: "test a single comment.",
444445
TreePath: "LICENSE",
446+
DiffHunk: "@@ -19,3 +19,5 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n+",
445447
Position: 4,
446448
CommitID: "2be9101c543658591222acbee3eb799edfc3853d",
447449
PosterID: 81045,

0 commit comments

Comments
 (0)