Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1431

The method TestPullRequest#diff sometimes returns wrong information

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.0
    • None
    • bots
    • None

    Description

      Considering the following steps:

      1. create a commit A at the source branch
      2. create a PR from source branch to target branch (assume the head commit of the target branch is B)
      3. create a new commit C at the target branch

      Ideally, we want the diff files of the PR to be the diff files of commit A.
      But the method TestPullRequest#diff returns the diff files of both A and reversed C.

      I found this issue when writing the test case for SKARA-1385. As a workaround, I always create a new PR when a new commit is pushed to the target branch.

      Attachments

        Issue Links

          Activity

            People

              gli Guoxiong Li
              gli Guoxiong Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: