mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-12 18:32:14 +01:00
minor refactoring of const + better timeout handling in pinter package + api package tests
This commit is contained in:
@@ -37,6 +37,9 @@ func AssertDirectoryEmpty(t *testing.T, directory string) {
|
||||
assert.Nil(t, err)
|
||||
defer f.Close() // nolint: errcheck
|
||||
_, err = f.Readdir(1)
|
||||
if err == nil {
|
||||
return
|
||||
}
|
||||
assert.Equal(t, io.EOF, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user