Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Chrome freezes on windows when opened with WWW::Mechanize::Chrome

by Corion (Patriarch)
on Oct 19, 2021 at 07:45 UTC ( [id://11137711]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
in thread Chrome freezes on windows when opened with WWW::Mechanize::Chrome

That shouldn't happen - can you please run the hanging test in isolation and with verbose output? The following steps should make the test output lots (and lots) of information:

cpanm --look WWW::Mechanize::Chrome perl Makefile.PL set TEST_LOG_LEVEL=trace perl -Ilib t/50-gh63-encode-response-content.t
  • Comment on Re^4: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
  • Download Code

Replies are listed 'Best First'.
Re^5: Chrome freezes on windows when opened with WWW::Mechanize::Chrome
by Bod (Parson) on Oct 19, 2021 at 23:43 UTC
    can you please run the hanging test in isolation and with verbose output

    Certainly - I've run this on two separate machines and I get the same result...
    It hangs at the end of the output and doesn't return to a command promt.

    UPDATE: Something in the output is screwing up the rendering. It was OK in preview mode but doesn't display properly...
    So - Find It Here

    Hope this is helpful.

      Thanks for posting the log!

      Looking at it, there is some redirect loop going on that I don't hit when I'm testing - that's one of the drawbacks of running tests against external servers...

      I don't see a good/quick fix, but as the test suite progresses somewhat, it seems sane to force-install the module, skipping the test suite.

      I'll look at rewriting the test using only local resources so it doesn't trip with the next (regional) behaviour change.

        Thanks for posting the log!

        No problem at all...thanks for creating what looks like an extremely useful module!

        that's one of the drawbacks of running tests against external servers...

        Yes - when I wrote the tests for Business::Stripe::WebCheckout, I tried to get it to connect to my server during testing with dummy public and private keys. Although the test server gave the right response to a browser, it always failed when the Perl tests tried to access it. The required code for testing mode is still in the module...

        choroba helpfully shared a blog over on Re^5: [RFC] Module code and POD for CPAN - Testing and test file

        That blog is a bit beyond me at present so I had planned to go back and revisit Business::Stripe::WebCheckout. I have not done that yet and really should.

        Perhaps there is a need for a module to help with testing modules that need to connect to external services?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found