NUnit [TearDown] fails — what process is accessing my files?

前端 未结 11 2572
你的背包
你的背包 2021-02-12 14:17

Final Edit: I found a solution to the problem (at the bottom of the question).

I\'ve got an Nunit problem that\'s causing me grief. Edit:

11条回答
  •  醉酒成梦
    2021-02-12 14:42

    Is it possible that the file is in the process of being closed (I.e. SQLLite doesn't release it immediately)?

    You could try putting the db close in a delay loop, (maybe one second between each attempt), and only throwing the exception after a few (5 or so) iterations through the loop.

提交回复
热议问题