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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user