Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Commit

Permalink
test: disable flaking tests on semaphore
Browse files Browse the repository at this point in the history
Tests that use aci-server can flake due to a global resource
(localhost port 443). This disables them on SemaphoreCI.
  • Loading branch information
lucab committed May 22, 2019
1 parent 0c87656 commit facc076
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/rkt_fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ func testFetchUpdate(t *testing.T, args string, image string, imageArgs string,
}

func TestFetchNoStoreCacheControl(t *testing.T) {
// Flake: https://github.com/rkt/rkt/issues/3995
if os.Getenv("SEMAPHORE") == "true" {
t.Skip("skipped on semaphore")
}

imageName := "rkt-inspect-fetch-nostore-cachecontrol"
imageFileName := fmt.Sprintf("%s.aci", imageName)
// no spaces between words, because of an actool limitation
Expand Down Expand Up @@ -504,6 +509,11 @@ func testSimpleServerHandler(t *testing.T, imagePath string) http.HandlerFunc {
}

func TestDeferredSignatureDownload(t *testing.T) {
// Flake: https://github.com/rkt/rkt/issues/3995
if os.Getenv("SEMAPHORE") == "true" {
t.Skip("skipped on semaphore")
}

imageName := "localhost/rkt-inspect-deferred-signature-download"
imageFileName := fmt.Sprintf("%s.aci", filepath.Base(imageName))
// no spaces between words, because of an actool limitation
Expand Down Expand Up @@ -552,6 +562,11 @@ func TestDeferredSignatureDownload(t *testing.T) {
}

func TestDifferentDiscoveryLabels(t *testing.T) {
// Flake: https://github.com/rkt/rkt/issues/3995
if os.Getenv("SEMAPHORE") == "true" {
t.Skip("skipped on semaphore")
}

const imageName = "localhost/rkt-test-different-discovery-labels-image"

aci_os, aci_arch := common.GetOSArch()
Expand Down

0 comments on commit facc076

Please sign in to comment.