Coder Social home page Coder Social logo

Comments (3)

tom-dudley avatar tom-dudley commented on June 20, 2024

I can't wrap my head around why the loop would ever be infinite. It seems to me that GetDirectoryPath is guaranteed to either be null or empty once it hits the root node. I can only think that the function is somehow returning the path which was passed in, which is highly doubtful.

Why would a non-parallelizable STA test make this more likely?

from nunit-console.

CharliePoole avatar CharliePoole commented on June 20, 2024

The comment about non-parallelizable STA tests relates to the original issue that was written against the framework. I suspected that the call to Delete might not return. However, it's irrelevant now that we are talking about the engine tests.

There may no longer be an issue. The only thing that bothers me about that method right now is the use of the name path for two purposes. It takes some knowledge of C# syntax to understand which value is being used in a given statement.

I think I'd be ready to close this in any case.

from nunit-console.

mikkelbu avatar mikkelbu commented on June 20, 2024

I just looked a bit into this issue, as and I cannot see how the code could hang. The only problem I can see is that sometimes the Dispose will not remove the file/folder due to an exception being thrown, or possibly leaving empty folders behind if other threads/processes have a delete share to the file making the Delete method return before actually deleting the file (see e.g. https://stackoverflow.com/questions/50295265/file-exists-returns-true-after-file-delete).

@nunit/engine-team I propose to delete the class TempResourceFile since it is currently unused in the project.

from nunit-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.