Skip to content

Commit b70e8e8

Browse files
committed
Fix broken test
1 parent f342964 commit b70e8e8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

test/unit/webgpu/p5.RendererWebGPU.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ suite('WebGPU p5.RendererWebGPU', function() {
121121
const currentTotalBuffers = poolForVertexBuffer.length +
122122
(immediateGeom._vertexBuffersInUse?.vertexBuffer?.length || 0);
123123

124-
expect(currentTotalBuffers).to.equal(initialTotalBuffers,
124+
expect(currentTotalBuffers).to.equal(initialTotalBuffers,
125125
`Buffer count should stay constant across frames (frame ${frame})`);
126126
}
127127
});
@@ -139,11 +139,8 @@ suite('WebGPU p5.RendererWebGPU', function() {
139139
try {
140140
await p.createCanvas(100, 100, p.WEBGPU);
141141

142-
// This triggers an asynchronous _resetContext
143-
p.setAttributes({ antialias: true });
142+
await p.setAttributes({ antialias: true });
144143

145-
// This triggers a synchronous resize() -> _updateSize()
146-
// before the new renderer's device is ready.
147144
expect(() => {
148145
p.pixelDensity(1);
149146
}).not.toThrow();

0 commit comments

Comments
 (0)