Skip to content

Commit

Permalink
Fixed some unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
berni44 committed Feb 22, 2021
1 parent 6ecbd56 commit e323d8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/bugzilla.d
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ unittest
"/github/repos/dlang/dmd/issues/6359/labels",
"/github/repos/dlang/dmd/issues/6359/labels",
(scope HTTPServerRequest req, scope HTTPServerResponse res) {},
"/github/repos/dlang/dmd/issues/6359/labels",
"/trello/1/search?query=name:%22Issue%2016794%22&"~trelloAuth,
"/trello/1/cards/583f517a333add7c28e0cec7/actions?filter=commentCard&"~trelloAuth,
"/trello/1/cards/583f517a333add7c28e0cec7/actions/583f517b91413ef81f1f9d34/comments?"~trelloAuth,
Expand All @@ -214,7 +215,7 @@ unittest
@MartinNowak created dlang/dmd pull request #6359 "fix Issue 16794 - dmd not working on Ubuntu 16.10" fixing this issue:
- fix Issue 16794 - dmd not working on Ubuntu 16.10
- enable PIC by default on amd64 linux (no significant overhead, full
PIC/PIE support)
- also see https://github.com/dlang/installer/pull/207
Expand Down Expand Up @@ -285,6 +286,7 @@ unittest
setAPIExpectations(
"/github/repos/dlang/dmd/pulls/6359/commits",
"/github/repos/dlang/dmd/issues/6359/comments",
"/github/repos/dlang/dmd/issues/6359/labels",
);

postGitHubHook("dlang_dmd_open_6359.json", "pull_request", (ref Json j, scope req) {
Expand All @@ -304,6 +306,7 @@ unittest
"/github/repos/dlang/dmd/issues/6359/labels",
"/github/repos/dlang/dmd/issues/6359/labels",
(scope HTTPServerRequest req, scope HTTPServerResponse res) {},
"/github/repos/dlang/dmd/issues/6359/labels",
"/trello/1/search?query=name:%22Issue%2016794%22&"~trelloAuth,
"/trello/1/cards/583f517a333add7c28e0cec7/actions?filter=commentCard&"~trelloAuth,
"/trello/1/cards/583f517a333add7c28e0cec7/actions/583f517b91413ef81f1f9d34/comments?"~trelloAuth,
Expand Down
1 change: 1 addition & 0 deletions test/comments.d
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ unittest
(scope HTTPServerRequest req, scope HTTPServerResponse res){
assert(req.method == HTTPMethod.GET);
},
"/github/repos/dlang/phobos/issues/5519/labels",
"/trello/1/search?query=name:%22Issue%2017564%22&"~trelloAuth,
);

Expand Down
4 changes: 3 additions & 1 deletion test/labels.d
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ unittest
assert(req.method == HTTPMethod.POST);
assert(req.json.deserializeJson!(string[]) == ["trivial"]);
res.writeVoidBody;
}
},
"/github/repos/dlang/dmd/issues/6359/labels"
);

postGitHubHook("dlang_dmd_open_6359.json", "pull_request",
Expand All @@ -152,6 +153,7 @@ unittest
unittest
{
setAPIExpectations(
"/github/repos/dlang/dmd/issues/6359/labels",
"/github/repos/dlang/dmd/pulls/6359/commits", (ref Json json) {
json = Json.emptyArray;
},
Expand Down

0 comments on commit e323d8f

Please sign in to comment.