Skip to content

Commit 29028bc

Browse files
authored
gitlab-container-registry: fix s3 test (NixOS#389808)
2 parents f0f6a34 + e6f2372 commit 29028bc

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
@@ -19,12 +19,11 @@ buildGoModule rec {
1919

2020
vendorHash = "sha256-I/umXgVm9a+0Ay3ARuaa4Dua4Zhc5p2TONHvhCt3Qtk=";
2121

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

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

0 commit comments

Comments
 (0)