diff options
author | Jakob Unterwurzacher | 2019-01-01 22:54:41 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2019-01-02 00:09:17 +0100 |
commit | 035b3367b7a447adc5e4c1ed96706f911c08c9f8 (patch) | |
tree | 1698bdd5ef6cfd638202db3adde6dfb1d5a4e158 /tests/reverse/exclude_test.go | |
parent | 035834dd5115cf5384e61dccfd2acc488990468f (diff) |
tests: reverse: add ctlsocket cleanup delay
Diffstat (limited to 'tests/reverse/exclude_test.go')
-rw-r--r-- | tests/reverse/exclude_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/reverse/exclude_test.go b/tests/reverse/exclude_test.go index aaecd65..c1b2180 100644 --- a/tests/reverse/exclude_test.go +++ b/tests/reverse/exclude_test.go @@ -3,6 +3,7 @@ package reverse_test import ( "io/ioutil" "testing" + "time" "github.com/rfjakob/gocryptfs/internal/ctlsock" "github.com/rfjakob/gocryptfs/tests/test_helpers" @@ -101,6 +102,9 @@ func testExclude(t *testing.T, flag string) { t.Errorf("File %q / %q is hidden, but should be visible", pOk[i], v) } } + // Give the running gocryptfs process a little bit of time to close lingering + // sockets. Avoid triggering the FD leak detector. + time.Sleep(1 * time.Millisecond) } func TestExclude(t *testing.T) { |