mirror of https://github.com/grpc/grpc-go.git
fix go vet in end2end test
This commit is contained in:
parent
467c1fdc83
commit
3d39290839
|
|
@ -496,7 +496,7 @@ func (te *test) startServer(ts testpb.TestServiceServer) {
|
||||||
la := "localhost:0"
|
la := "localhost:0"
|
||||||
switch te.e.network {
|
switch te.e.network {
|
||||||
case "unix":
|
case "unix":
|
||||||
la = "/tmp/testsock" + fmt.Sprintf("%d", time.Now())
|
la = "/tmp/testsock" + fmt.Sprintf("%d", time.Now().UnixNano())
|
||||||
syscall.Unlink(la)
|
syscall.Unlink(la)
|
||||||
}
|
}
|
||||||
lis, err := net.Listen(te.e.network, la)
|
lis, err := net.Listen(te.e.network, la)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue