tailscale/taildrop
Joe Tsai d603d18956
taildrop: fix TestResume (#9874)
Previously, the test simply relied on:
	defer close()
to cleanup file handles.

This works fine on Unix-based systems,
but not on Windows, which dislikes deleting files
where an open file handle continues to exist.

Fix the test by explicitly closing the file handle
after we are done with the resource.

Updates tailscale/corp#14772

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2023-10-18 18:07:30 -07:00
..
delete.go taildrop: fix theoretical race condition (#9866) 2023-10-18 10:21:36 -07:00
delete_test.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
resume.go taildrop: switch hashing to be streaming based (#9861) 2023-10-17 17:53:40 -07:00
resume_test.go taildrop: fix TestResume (#9874) 2023-10-18 18:07:30 -07:00
retrieve.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
send.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
taildrop.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00
taildrop_test.go taildrop: implement asynchronous file deletion (#9844) 2023-10-17 13:46:05 -07:00