Skip to content

Commit e6f2372

Browse files
committed
gitlab-container-registry: fix s3 test
1 parent 6607cf7 commit e6f2372

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pkgs/by-name/gi/gitlab-container-registry/package.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ buildGoModule rec {
2020

2121
vendorHash = "sha256-oNQoKn8GPJxmUzkUHGzax2/KWyI3VXLRtAvWe9B64Ds=";
2222

23-
postPatch = ''
24-
substituteInPlace health/checks/checks_test.go \
25-
--replace-fail \
26-
'func TestHTTPChecker(t *testing.T) {' \
27-
'func TestHTTPChecker(t *testing.T) { t.Skip("Test requires network connection")'
28-
'';
23+
checkFlags = [
24+
# TestHTTPChecker requires internet
25+
# TestS3DriverPathStyle requires s3 credentials/urls
26+
"-skip TestHTTPChecker|TestS3DriverPathStyle"
27+
];
2928

3029
meta = with lib; {
3130
description = "GitLab Docker toolset to pack, ship, store, and deliver content";

0 commit comments

Comments
 (0)