test: remove stale socket in ipc_send_recv_pipe
Fixes spurious test failures.
This commit is contained in:
parent
2609e43632
commit
b69f8efee1
@ -120,6 +120,11 @@ TEST_IMPL(ipc_send_recv_pipe) {
|
||||
r = uv_pipe_init(uv_default_loop(), &ctx.send.pipe, 1);
|
||||
ASSERT(r == 0);
|
||||
|
||||
#ifndef _WIN32
|
||||
/* Clean up stale socket from previous test run. */
|
||||
remove(TEST_PIPENAME);
|
||||
#endif
|
||||
|
||||
r = uv_pipe_bind(&ctx.send.pipe, TEST_PIPENAME);
|
||||
ASSERT(r == 0);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user