Skip to content

Commit e323d8f

Browse files
committed
Fixed some unittests
1 parent 6ecbd56 commit e323d8f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

test/bugzilla.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ unittest
192192
"/github/repos/dlang/dmd/issues/6359/labels",
193193
"/github/repos/dlang/dmd/issues/6359/labels",
194194
(scope HTTPServerRequest req, scope HTTPServerResponse res) {},
195+
"/github/repos/dlang/dmd/issues/6359/labels",
195196
"/trello/1/search?query=name:%22Issue%2016794%22&"~trelloAuth,
196197
"/trello/1/cards/583f517a333add7c28e0cec7/actions?filter=commentCard&"~trelloAuth,
197198
"/trello/1/cards/583f517a333add7c28e0cec7/actions/583f517b91413ef81f1f9d34/comments?"~trelloAuth,
@@ -214,7 +215,7 @@ unittest
214215
@MartinNowak created dlang/dmd pull request #6359 "fix Issue 16794 - dmd not working on Ubuntu 16.10" fixing this issue:
215216
216217
- fix Issue 16794 - dmd not working on Ubuntu 16.10
217-
218+
218219
- enable PIC by default on amd64 linux (no significant overhead, full
219220
PIC/PIE support)
220221
- also see https://github.com/dlang/installer/pull/207
@@ -285,6 +286,7 @@ unittest
285286
setAPIExpectations(
286287
"/github/repos/dlang/dmd/pulls/6359/commits",
287288
"/github/repos/dlang/dmd/issues/6359/comments",
289+
"/github/repos/dlang/dmd/issues/6359/labels",
288290
);
289291

290292
postGitHubHook("dlang_dmd_open_6359.json", "pull_request", (ref Json j, scope req) {
@@ -304,6 +306,7 @@ unittest
304306
"/github/repos/dlang/dmd/issues/6359/labels",
305307
"/github/repos/dlang/dmd/issues/6359/labels",
306308
(scope HTTPServerRequest req, scope HTTPServerResponse res) {},
309+
"/github/repos/dlang/dmd/issues/6359/labels",
307310
"/trello/1/search?query=name:%22Issue%2016794%22&"~trelloAuth,
308311
"/trello/1/cards/583f517a333add7c28e0cec7/actions?filter=commentCard&"~trelloAuth,
309312
"/trello/1/cards/583f517a333add7c28e0cec7/actions/583f517b91413ef81f1f9d34/comments?"~trelloAuth,

test/comments.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ unittest
331331
(scope HTTPServerRequest req, scope HTTPServerResponse res){
332332
assert(req.method == HTTPMethod.GET);
333333
},
334+
"/github/repos/dlang/phobos/issues/5519/labels",
334335
"/trello/1/search?query=name:%22Issue%2017564%22&"~trelloAuth,
335336
);
336337

test/labels.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ unittest
138138
assert(req.method == HTTPMethod.POST);
139139
assert(req.json.deserializeJson!(string[]) == ["trivial"]);
140140
res.writeVoidBody;
141-
}
141+
},
142+
"/github/repos/dlang/dmd/issues/6359/labels"
142143
);
143144

144145
postGitHubHook("dlang_dmd_open_6359.json", "pull_request",
@@ -152,6 +153,7 @@ unittest
152153
unittest
153154
{
154155
setAPIExpectations(
156+
"/github/repos/dlang/dmd/issues/6359/labels",
155157
"/github/repos/dlang/dmd/pulls/6359/commits", (ref Json json) {
156158
json = Json.emptyArray;
157159
},

0 commit comments

Comments
 (0)