Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

gitlab-container-registry: Disable a flaky test

authored by Yaya and committed by Yureka 7fd06ae3 6599971b

+42
+38
pkgs/applications/version-management/gitlab/gitlab-container-registry/Disable-inmemory-storage-driver-test.patch
··· 1 + From bc359e8f51a17ba759121339e87e90eed16e98fe Mon Sep 17 00:00:00 2001 2 + From: Yaya <mak@nyantec.com> 3 + Date: Tue, 20 Jun 2023 10:01:23 +0000 4 + Subject: [PATCH] Disable inmemory storage driver test 5 + 6 + --- 7 + .../storage/driver/inmemory/driver_test.go | 19 ------------------- 8 + 1 file changed, 19 deletions(-) 9 + delete mode 100644 registry/storage/driver/inmemory/driver_test.go 10 + 11 + diff --git a/registry/storage/driver/inmemory/driver_test.go b/registry/storage/driver/inmemory/driver_test.go 12 + deleted file mode 100644 13 + index dbc1916f..00000000 14 + --- a/registry/storage/driver/inmemory/driver_test.go 15 + +++ /dev/null 16 + @@ -1,19 +0,0 @@ 17 + -package inmemory 18 + - 19 + -import ( 20 + - "testing" 21 + - 22 + - storagedriver "github.com/docker/distribution/registry/storage/driver" 23 + - "github.com/docker/distribution/registry/storage/driver/testsuites" 24 + - "gopkg.in/check.v1" 25 + -) 26 + - 27 + -// Hook up gocheck into the "go test" runner. 28 + -func Test(t *testing.T) { check.TestingT(t) } 29 + - 30 + -func init() { 31 + - inmemoryDriverConstructor := func() (storagedriver.StorageDriver, error) { 32 + - return New(), nil 33 + - } 34 + - testsuites.RegisterSuite(inmemoryDriverConstructor, testsuites.NeverSkip) 35 + -} 36 + -- 37 + 2.40.1 38 +
+4
pkgs/applications/version-management/gitlab/gitlab-container-registry/default.nix
··· 14 14 15 15 vendorHash = "sha256-/ITZBh0vRYHb6fDUZQNRwW2pmQulJlDZ8EbObUBtsz4="; 16 16 17 + patches = [ 18 + ./Disable-inmemory-storage-driver-test.patch 19 + ]; 20 + 17 21 postPatch = '' 18 22 substituteInPlace health/checks/checks_test.go \ 19 23 --replace \