You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build the service to run the script continuously
Each test from createTestCafe -> createRunner -> TestCafe.close()
The first time, it's always right
but
The second run is
It will fetch data from the wrong cache
The reason in jsCache Did not follow TestCafe.close() Be destroyed
What is the Current behavior?
TestCafe.close()->proxy.close() There is no destruction jsCache
What is the Expected behavior?
TestCafe.close()->proxy.close() At the same time destruction jsCache
What is your public website URL? (or attach your complete example)
I'm sorry I don't have enough time to do that
What is your TestCafe test code?
none ,It's too long
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
It should be careful enough, keep an eye on it, I'm trying to fix it too
TestCafe version
1.18.3
Node.js version
v16.13.0
Command-line arguments
testcafe ie,chrome -e test2.js
Browser name(s) and version(s)
No response
Platform(s) and version(s)
No response
Other
processResource (script: string, ctx: RequestPipelineContext, _charset: Charset, urlReplacer: Function): string {
if (!script)
return script;
let processedScript = this.jsCache.get(script); // You should try to fix it here, not just with text content
if (!processedScript) {
processedScript = processScript(script, true, false, urlReplacer,
ctx.destRes.headers[BUILTIN_HEADERS.serviceWorkerAllowed] as string);
this.jsCache.set(script, processedScript);
}
else
processedScript = updateScriptImportUrls(processedScript, ctx.serverInfo, ctx.session.id, ctx.windowId);
return processedScript;
}
The text was updated successfully, but these errors were encountered:
What is your Scenario?
I build the service to run the script continuously
Each test from createTestCafe -> createRunner -> TestCafe.close()
The first time, it's always right
but
The second run is
It will fetch data from the wrong cache
The reason in jsCache Did not follow TestCafe.close() Be destroyed
What is the Current behavior?
TestCafe.close()->proxy.close() There is no destruction jsCache
What is the Expected behavior?
TestCafe.close()->proxy.close() At the same time destruction jsCache
What is your public website URL? (or attach your complete example)
I'm sorry I don't have enough time to do that
What is your TestCafe test code?
none ,It's too long
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
TestCafe version
1.18.3
Node.js version
v16.13.0
Command-line arguments
testcafe ie,chrome -e test2.js
Browser name(s) and version(s)
No response
Platform(s) and version(s)
No response
Other
The text was updated successfully, but these errors were encountered: