Giter Site home page Giter Site logo

redis-win32-fxtestintegration's People

Contributors

derfsplat avatar iristyle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

redis-win32-fxtestintegration's Issues

HostManager fails to start with "process is in use by another process" or "exit code 1" (cannot write config)

Basically the host manager is failing to see if Redis is already running.

Steps to reproduce (Method 1):

  • Add a breakpoint to a test that uses RedisIntegration
  • Start debugging
  • At break point, kill the test process by hitting "stop" in Visual Studio
  • Restart testing with or without debugging --> Boom: redis-server.exe has not been shut down by the host manager and the second run is throwing an error bc redis-server.exe is unexpectedly running.

Steps to reproduce (Method 2):
Assuming subject application relies on Redis, the process will have to be daemonized. If redis-server.exe is left running as a result of a similarly stopped debug session while outside of unit tests, the tests will fail to start for the same reason (process is in use / redis-server unexpectedly running).

If we were only concerned with Method 1, I'd suggest checking for the existence of redis-server.exe before trying to spin up a second copy (this is what my daemon process does), flush all, and move on. However, we risk flushing all cached data for the locally debugged application (Method 2).

The counter argument I see for this is the fact that cache data by nature is transient and this situation would either occur on a local dev box or a build server where we'd want all data flushed, so the point may be moot.

I can submit a pull request with a fix for this if you give me some guidance on how you'd prefer it to be addressed. Thanks!

Could not find a part of the path

I got the error below when calling var connectionInfo = RedisIntegration.HostManager.RunInstance();
I assume something went wrong when generating the temp path.

Could not find a part of the path C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\api\052337a3\f6653c62\assembly\dl3\89911f30\af004d62_eef9cc01..........\packages\RedisIntegration.0.2.0.0\tools\64bit\redis-server.exe

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.