deleteSocket() deletes the socket in the file system. This is needed because the socket occasionally will refuse a connection to it, and deleting it allows us to create a new socket when invoking containerd.New()
()
| 200 | // refuse a connection to it, and deleting it allows us |
| 201 | // to create a new socket when invoking containerd.New() |
| 202 | func deleteSocket() error { |
| 203 | err := os.Remove(defaultAddress) |
| 204 | if err != nil { |
| 205 | return err |
| 206 | } |
| 207 | return nil |
| 208 | } |
| 209 | |
| 210 | // updatePathEnv() creates an empty directory in which |
| 211 | // the fuzzer will create the containerd socket. |
no test coverage detected
searching dependent graphs…