diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-06 20:09:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 20:09:31 +0800 |
commit | 2382f1b057bb582abc87a030f0463e3b1f6fb118 (patch) | |
tree | a9876ef817bf72ddeafbb0a5721aaa49f0f7650d /models/fixtures | |
parent | dab38c375df5c4719d35f1be29278d254d68390f (diff) | |
download | gitea-2382f1b057bb582abc87a030f0463e3b1f6fb118.tar.gz gitea-2382f1b057bb582abc87a030f0463e3b1f6fb118.zip |
fix 500 when reviewer is deleted with integration tests (#6856)
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/comment.yml | 12 | ||||
-rw-r--r-- | models/fixtures/review.yml | 9 |
2 files changed, 21 insertions, 0 deletions
diff --git a/models/fixtures/comment.yml b/models/fixtures/comment.yml index 6abd26973b..864313cac3 100644 --- a/models/fixtures/comment.yml +++ b/models/fixtures/comment.yml @@ -52,3 +52,15 @@ tree_path: "README.md" created_unix: 946684812 invalidated: true + +- + id: 7 + type: 21 # code comment + poster_id: 100 + issue_id: 3 + content: "a review from a deleted user" + line: -4 + review_id: 10 + tree_path: "README.md" + created_unix: 946684812 + invalidated: true
\ No newline at end of file diff --git a/models/fixtures/review.yml b/models/fixtures/review.yml index 515f0d77f8..a0122dea99 100644 --- a/models/fixtures/review.yml +++ b/models/fixtures/review.yml @@ -70,3 +70,12 @@ content: "New review 3 rejected" updated_unix: 946684810 created_unix: 946684810 + +- + id: 10 + type: 3 + reviewer_id: 100 + issue_id: 3 + content: "a deleted user's review" + updated_unix: 946684810 + created_unix: 946684810
\ No newline at end of file |