-
Notifications
You must be signed in to change notification settings - Fork 218
Pub run test performs http-request twice #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I wouldn't expect other people to download arbitrary zip files and expand them on their local disc ;-) |
Thanks, Gunter, run_test.zip is published as https://github.com/YuriKulaghin/dartlang_test_issue451. |
Could this be because of |
Yeah, it looks to me like @zoechi is right: you're double-including your test script. |
You suggested doing that to us in order to fix --pause-after-load. That is required for debugging in the browser and to run the test at the command line. See: Again, we need to be able to debug to develop tests and also be able to run them at the command line. We have thousands of tests. |
I believe what I said was "be aware that you're using |
@vpigrad As a non-standard way, you can comment in/out this script tag in order to be able to debug from WebStorm, or what I'm usually doing is, to create a copy of that file (without |
Thanks for all, it's true - second script including in the body of html-file (for debug with browser) gives double script running under |
See simplest run_test.zip with cllient and server - client sends http-request to server, server responses with 'Hello, world!'. When test.html is launched directly by Dartium (WebStorm -> Run 'test.html') then server receives one request, as expected. When test is launched by
pub run test -p dartium test\test.html
server recieves two equal requests! Why?! Effect is reproduced on Windows and Linux, with dart-sdk/dartium 1.18.1 and older, with test 0.12.15+3 and 0.12.14+1.The text was updated successfully, but these errors were encountered: