From e323d8f330ce0c6afc9e794de65f2b3fec10b4dc Mon Sep 17 00:00:00 2001 From: berni44 Date: Mon, 22 Feb 2021 14:50:45 +0100 Subject: [PATCH] Fixed some unittests --- test/bugzilla.d | 5 ++++- test/comments.d | 1 + test/labels.d | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/bugzilla.d b/test/bugzilla.d index d760a0d..f4d841b 100644 --- a/test/bugzilla.d +++ b/test/bugzilla.d @@ -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, @@ -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 @@ -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) { @@ -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, diff --git a/test/comments.d b/test/comments.d index a78cf15..6b3ee1b 100644 --- a/test/comments.d +++ b/test/comments.d @@ -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, ); diff --git a/test/labels.d b/test/labels.d index 7aea69d..5b24139 100644 --- a/test/labels.d +++ b/test/labels.d @@ -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", @@ -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; },