(t *testing.T, addr string)
| 125 | } |
| 126 | |
| 127 | func tryDialUnix(t *testing.T, addr string) net.Conn { |
| 128 | var ( |
| 129 | conn net.Conn |
| 130 | dialErr error |
| 131 | ) |
| 132 | for i := 0; i < 10; i++ { |
| 133 | conn, dialErr = net.Dial("unix", addr) |
| 134 | if conn != nil { |
| 135 | break |
| 136 | } |
| 137 | time.Sleep(100 * time.Millisecond) |
| 138 | } |
| 139 | if dialErr != nil { |
| 140 | t.Fatalf("net.Dial(): %v", dialErr) |
| 141 | } |
| 142 | return conn |
| 143 | } |
| 144 | |
| 145 | func TestFUSEDialInstance(t *testing.T) { |
| 146 | if testing.Short() { |
no test coverage detected