Skip to content
Snippets Groups Projects
Unverified Commit 06538859 authored by dlorenc's avatar dlorenc Committed by GitHub
Browse files

Add a skip on the JAR test, this doesn't work in some local docker setups. (#546)


Signed-off-by: default avatarDan Lorenc <lorenc.d@gmail.com>
parent 47d53252
No related branches found
No related tags found
No related merge requests found
...@@ -501,7 +501,10 @@ func TestJARURL(t *testing.T) { ...@@ -501,7 +501,10 @@ func TestJARURL(t *testing.T) {
_, _ = w.Write(jarBytes) _, _ = w.Write(jarBytes)
})) }))
defer testServer.Close() defer testServer.Close()
l, _ := net.Listen("tcp", "172.17.0.1:0") l, err := net.Listen("tcp", "172.17.0.1:0")
if err != nil {
t.Skipf("unable to forward port to rekor server: %s", err)
}
testServer.Listener.Close() testServer.Listener.Close()
testServer.Listener = l testServer.Listener = l
testServer.Start() testServer.Start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment