diff options
author | HampusM <hampus@hampusmat.com> | 2021-08-12 14:38:30 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-08-12 14:38:30 +0200 |
commit | 30f0b2ee1f494be1786280040fb47ec18bde8a6d (patch) | |
tree | 9a5a1e880213683ee87187f632796df3f9f10a42 | |
parent | 108b469cbb09f911c9a52d4134a504d9b51ac30d (diff) |
Fixed the pgp-related commit unit test problem
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | test/unit/commit.unit.test.ts | 2 |
2 files changed, 3 insertions, 1 deletions
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() => { |