Comments (8)
I think this is inevitable, since you are managing ports yourself rather than using the ones tryorama provides and injects as ConfigSeedArgs. But do you see a way to integrate this more tightly with tryorama?
from tryorama.
from tryorama.
Hmm yeah you're right it's not ideal to have to manage on your own. If you want to propose a pattern we can see if we can bake it in.
Actually though, why do you have to manage the ports on your own, rather than using the random ports tryorama provides?
Would it be enough for there to be a config getter on the Player so you can read out the config data at test time?
from tryorama.
from tryorama.
The interfacePort happens to be stored "privately" at player._instancePort
, which you can access already. I agree that this, and other config, would be good to have as part of the stable API, and have it documented, but this may work for you for now.
see
Line 43 in a1a9c3b
from tryorama.
@maackle this does work! I think that variable may have been kept in a closure previously, hence my workarounds. This is definitely cleaner (see ref'd PR above).
So, I think the original request here is probably no longer needed- does it make sense for you to repurpose this issue as a feature request for access to the interface port for each player?
from tryorama.
@pospi that makes sense!
from tryorama.
I created a fresh issue #28 just to make the intention clearer, and it links to this one for context.
from tryorama.
Related Issues (20)
- Signals blocks rest of call execution for a conductor that has been `shutdown` and then `startup` HOT 2
- Large hApp installations fail due to timeout HOT 6
- err catching is too aggressive. holochain sometimes has non-fatal errors that are logged to stderr, such as lair-keystore HOT 22
- processes seem to be spawned and not killed
- @holochain/client should be updated
- unless making this `.on` instead of `.once` all the conductor logs are swallowed here HOT 7
- the logging situation HOT 6
- there is a need to be able to use the `timeout` property on callZome
- tryorama is not equipped for `network_seed` instead of `uid` HOT 2
- Tryorama not using up-to-date nor pinned @holochain/client HOT 2
- console logging not clear HOT 6
- executing command runs indefinitely HOT 4
- Feature Request: function that waits until all agents have identical dht state HOT 2
- Change API for awaitDhtSync HOT 5
- signals broken for 0.2x HOT 3
- incomprehensible error.. wbindgen HOT 4
- [TryCP Server] Reuse admin websocket instead of connecting/disconnecting on every call
- Tryorama tests fail because of connection errors even after all tests succeeded HOT 6
- Error when calling `appWs.callZome({ role_name: '', ... })` HOT 2
- dhtSync fails with TypeError HOT 1
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 tryorama.