TESTS: don't assume ordering of exceptions
This commit is contained in:
parent
f07619b7c6
commit
d708f80a1f
@ -164,9 +164,9 @@ spec = beforeAll_ (upTmpDir >> setupFiles) $ afterAll_ cleanupFiles $
|
|||||||
Overwrite
|
Overwrite
|
||||||
CollectFailures
|
CollectFailures
|
||||||
`shouldThrow`
|
`shouldThrow`
|
||||||
(\(RecursiveFailure [e1, e2]) ->
|
(\(RecursiveFailure ex@[_, _]) ->
|
||||||
ioeGetErrorType e1 == InappropriateType &&
|
any (\e -> ioeGetErrorType e == InappropriateType) ex &&
|
||||||
ioeGetErrorType e2 == PermissionDenied)
|
any (\e -> ioeGetErrorType e == PermissionDenied) ex)
|
||||||
normalDirPerms "outputDir1/foo2/foo4"
|
normalDirPerms "outputDir1/foo2/foo4"
|
||||||
normalDirPerms "outputDir1/foo2/foo4/inputFile4"
|
normalDirPerms "outputDir1/foo2/foo4/inputFile4"
|
||||||
c <- allDirectoryContents' "outputDir1"
|
c <- allDirectoryContents' "outputDir1"
|
||||||
|
Loading…
Reference in New Issue
Block a user