GithubHelp home page GithubHelp logo

URL Not Matching about wiremock HOT 6 CLOSED

wiremock avatar wiremock commented on July 19, 2024
URL Not Matching

from wiremock.

Comments (6)

tomakehurst avatar tomakehurst commented on July 19, 2024

Hi Toby,

Could you give me a little more detail?

Is it the verify call or a stub that's failing?

Tom

from wiremock.

tomakehurst avatar tomakehurst commented on July 19, 2024

Sorry, just noticed you've already closed this!

from wiremock.

tobyweston avatar tobyweston commented on July 19, 2024

Hi Tom,

Not sure what was going on in the end. My tests started passing and I've no clue what's going on! Hence I closed it.

Don't worry, if I encounter more problems, I'll repost with more details.

One thought though, I do seem to get intermittent results. I'll have to find out more before I can comment properly, but have you noticed problems with the statics and running in multithreaded envs? EDIT: <- that last line's prob not true, it's more likely I'm running into race conditions of my own making!

Thanks

from wiremock.

tomakehurst avatar tomakehurst commented on July 19, 2024

I have to admit I've not run it a huge amount with test multi-threading (presume this is what you mean?). It's designed with that in mind, but I've never got round to writing a proper set of concurrency tests.

I'd be interested to hear about what you're seeing and in what context.

from wiremock.

tobyweston avatar tobyweston commented on July 19, 2024

I'm running into standard race conditions, so not really a wiremock issue. The usual thing really, making a request in the UI, verifying that the stubbed (by wiremock) endpoint got called and forgetting that the "making a request" part is in a browser/JavaScript and is asynchronous!

In my tests, I've added code to probe for wiremock verifications to get round it. If you're interested, it used this and an example is here.

from wiremock.

tomakehurst avatar tomakehurst commented on July 19, 2024

I'm considering writing a multi-threaded JUnit rule that spins up a wiremock instance per-thread on a separate port. The advantage would be that you don't get requests from another thread in the verify log and you don't inadvertently match stubs configured in other threads.

Do you think this would be any help?

from wiremock.

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.