Closed twilson63 closed 2 years ago
Hey @twilson63 👋
The constructed superdeno chain is a promise. Can you try...
import {superdeno} from 'https://deno.land/x/superdeno@4.7.1/mod.ts';
import { build } from './server.ts';
const app = build();
Deno.test('hello world', async () => {
await superdeno(app)
.get('/')
.expect(200);
});
And see if that resolves the issue?
Hey @asos-craigmorten,
Adding await, creates some strange results, randomly it seems to either pass or fail with the leaking async issue.
Hey @twilson63, have released https://deno.land/x/superdeno@4.7.2 - let me know if you're still experiencing the issue.
Issue: Getting async leaking error when testing opine v2
Setup:
Details
server.ts
test.ts
Run
Output