// Copyright 2012 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.packageipv4_testimport("net""testing")funcacceptor(t*testing.T,lnnet.Listener,donechan<-bool){deferfunc(){done<-true}()c,err:=ln.Accept()iferr!=nil{t.Error(err)return}c.Close()}