Skip to content

Commit

Permalink
Fix race condition in wasm test (#4740)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran authored Dec 10, 2024
1 parent 548c664 commit 668e2af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lang/wasm.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { err } from 'lib/trap'
import { parse, ParseResult } from './wasm'
import { initPromise, parse, ParseResult } from './wasm'
import { enginelessExecutor } from 'lib/testHelpers'
import { Node } from 'wasm-lib/kcl/bindings/Node'
import { Program } from '../wasm-lib/kcl/bindings/Program'

beforeEach(async () => {
await initPromise
})

it('can execute parsed AST', async () => {
const code = `x = 1
// A comment.`
Expand Down

0 comments on commit 668e2af

Please sign in to comment.