1
0
mirror of https://github.com/ko-build/ko.git synced 2025-07-15 23:54:17 +02:00

Speed up base image unit test with local registry (#429)

Also follow my own advice to `defer Close()` 😇
This commit is contained in:
Halvard Skogsrud
2021-08-28 02:52:01 +10:00
committed by GitHub
parent ae594dcc74
commit 29fccb0832
2 changed files with 15 additions and 2 deletions

View File

@ -166,6 +166,7 @@ func TestNewBuilder(t *testing.T) {
if err != nil {
t.Fatalf("could not create test registry server: %v", err)
}
defer s.Close()
baseImage := fmt.Sprintf("%s/%s", s.Listener.Addr().String(), namespace)
tests := []struct {