AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

Under certain conditions, any changes to a test will not take affect until environment is reset #306

Open alekdavisintel opened 1 week ago

alekdavisintel commented 1 week ago

I was helping a co-worker yesterday and noticed that while debugging some requests, any changes to the test (like adding or removing assserts) did not get reflected. I did not pay attention but today the very same thing happened to me.

At certain point, once I initially ran a test, the results were always the same for the consequitive runs regarless of the changes I applied. Like if the initial test was successful, and then I changed or added asserts that should've caused errors, they did not. I even changed the endpoint URL (appended random characters at the end) and the test would always show the same (original) result. And if I originally had an error, fixing the assert conditions did not do anything either: it always showed the same error. Once I reset the environment, it all started working, but again only for the first run.

I restarted VSCode, and the problem went away, but it definitely happened on a few occasions, although I cannot say what triggered it. Any ideas what it could be?