Giter Site home page Giter Site logo

Comments (6)

koivunej avatar koivunej commented on May 23, 2024

I suspect this is the safety feature of having a lock file in the repository to guard against accessing it from two different processes. In fact, before this feature was added, there were a number of issues of me accidentially using the single repository and getting bad results, and wasting time.

You could for example use a temporary directory for this the purpose of testing.

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 23, 2024

How would a temporary directory help if everything is in memory anyways?

from rust-ipfs.

koivunej avatar koivunej commented on May 23, 2024

No, it should not help, nor should it be needed. If this was the case, it'd be a bug. Could you share how are you hitting this issue with in-memory repository? Initialization code, and/or other details would help, or those in comparison to the tests in the repository.

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 23, 2024

Yeah, sure: https://git.beyermatthi.as/distrox/tree/src/client.rs?h=ipfs-backend#n127

It is just very simple stuff as I'm still playing with ideas... I am doing nothing more than just cargo test, which executes tests in parallel and then causes all tests to fail because the initialization of the ipfs repo fails for all tests.

from rust-ipfs.

koivunej avatar koivunej commented on May 23, 2024

On line 130:

let (ipfs, fut): (ipfs::Ipfs<ipfs::Types>, _) = ...

Please try replacing ipfs::Types with ipfs::TestTypes. This is unfortunate fallout from some refactoring which removed the generic type being carried around with IpfsOptions without the naming becoming more clear.

from rust-ipfs.

matthiasbeyer avatar matthiasbeyer commented on May 23, 2024

Argh. Thanks!

from rust-ipfs.

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.