TESTS: don't assume ordering of exceptions

这个提交包含在:
Julian Ospald 2016-06-05 15:37:26 +02:00
父节点 f07619b7c6
当前提交 d708f80a1f
找不到此签名对应的密钥
GPG 密钥 ID: 511B62C09D50CD28
共有 1 个文件被更改,包括 3 次插入3 次删除

查看文件

@ -164,9 +164,9 @@ spec = beforeAll_ (upTmpDir >> setupFiles) $ afterAll_ cleanupFiles $
Overwrite
CollectFailures
`shouldThrow`
(\(RecursiveFailure [e1, e2]) ->
ioeGetErrorType e1 == InappropriateType &&
ioeGetErrorType e2 == PermissionDenied)
(\(RecursiveFailure ex@[_, _]) ->
any (\e -> ioeGetErrorType e == InappropriateType) ex &&
any (\e -> ioeGetErrorType e == PermissionDenied) ex)
normalDirPerms "outputDir1/foo2/foo4"
normalDirPerms "outputDir1/foo2/foo4/inputFile4"
c <- allDirectoryContents' "outputDir1"