From 30f0b2ee1f494be1786280040fb47ec18bde8a6d Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 12 Aug 2021 14:38:30 +0200 Subject: Fixed the pgp-related commit unit test problem --- .gitlab-ci.yml | 2 ++ test/unit/commit.unit.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b6eb7cd..ce9d5aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,8 @@ yarn-install: test: stage: test + before_script: + - gpg --keyserver keys.openpgp.org --receive-keys 9C0309603A7DA7CE3F1B2CE7B7D6FB9B7AFDF0DE script: - yarn test --ci=true diff --git a/test/unit/commit.unit.test.ts b/test/unit/commit.unit.test.ts index c8cc06f..e9e0e0d 100644 --- a/test/unit/commit.unit.test.ts +++ b/test/unit/commit.unit.test.ts @@ -48,7 +48,7 @@ describe("Commit", () => { let commit: Commit; beforeAll(async() => { - commit = await repository.head(); + commit = await Commit.lookup(repository, "8feb65c5467cc3ad48270183113a121c4a9f86ca"); }); it("Should get the stats", async() => { -- cgit v1.2.3-18-g5258