Comments (6)
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.
How would a temporary directory help if everything is in memory anyways?
from rust-ipfs.
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.
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.
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.
Argh. Thanks!
from rust-ipfs.
Related Issues (20)
- Re-consider adding non-workspace dependending crate
- How to get resolved IPLD structure HOT 1
- How to store and load Keypairs? HOT 8
- Upgrade to libp2p 0.41 HOT 2
- How to just serve? HOT 7
- Requesting to create PR code supporting WordBase-2048 or get feedback on the idea HOT 1
- unixfs examples do not actually use IPFS HOT 1
- Latest crates.io package dependency graph is broken HOT 1
- DAG-CBOR-encoded Ipld::Map does not strictly order keys HOT 2
- libp2p NetworkBehaviour implementation is not extensible.
- libp2p Transport implementation is not extensible. HOT 1
- conformance: ignored windows tests
- What about mounting IPFS with FUSE HOT 1
- Failing to build a blank project with ipfs dependency HOT 3
- broken aesni dependency when used as library
- When I installed and compiled on the Mac, an error occurredEnter title here HOT 3
- Node Storage Capacity HOT 1
- Bootstrap in Node
- can not run example fetch_and_cat HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-ipfs.