texasranger
texasranger
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
Did not make a difference, but good to know you can just set the sanitize params at the very top and not need to do it on each individual test
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
Worth a try
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
I am awaiting I just wrote it out real quick. Thanks for checking on that though.
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
It would be handy to have a top level way to say ignore op_read and op_spawn_wait issues
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
I only have two tests, and both trigger the original error posted at the top of the thread
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
There is always one top level describe, and then all the it on the inside are the same level
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
Here is an example of what I am doing:
describe({name: 'API: DB: Auth', sanitizeOps: false, sanitizeResources: false}, () => {
it({name: 'should create a user and org', sanitizeOps: false, sanitizeResources: false}, async () => {
const { org, user } = await createUserAndOrg('...')
})
describe({name: 'API: DB: Auth', sanitizeOps: false, sanitizeResources: false}, () => {
it({name: 'should create a user and org', sanitizeOps: false, sanitizeResources: false}, async () => {
const { org, user } = await createUserAndOrg('...')
})
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
The fact this works fine on MacOS but not inside docker / ubuntu is weird
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
I think that fixed it for one of the tests, but the others same problem
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
Same issue
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
OK, I'll try adding sanitizeOps: false, sanitizeResources: false, to describe as well
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
I am using BDD, so it would be describe and it, but i believe it would be the same issue as they use test and step underneath right?
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
Also, I only get this when running the tests on ubuntu / github actions. i do not get this error on MacOS. On Mac, the tests run just fine.
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
What do you mean by "top level test"
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
Why does `deno test` add an older version of the `std` library to my deno.lock?
I don't know -- again, once I cleared the cache the issue went away
9 replies
DDeno
Created by texasranger on 2/25/2023 in #help
Why does `deno test` add an older version of the `std` library to my deno.lock?
my tests do not load/add any extra dependencies which would differ from deno run
9 replies
DDeno
Created by texasranger on 2/25/2023 in #help
Why does `deno test` add an older version of the `std` library to my deno.lock?
Running rm -rf $HOME/Library/Caches/deno fixed it. Why did I have to do that though?
9 replies
DDeno
Created by texasranger on 12/22/2022 in #help
Where to contact for name squatting?
ok I will try that, thanks
3 replies