Skip to content

Commit 8185db1

Browse files
committed
fix test expectations
1 parent 513ce14 commit 8185db1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4204,7 +4204,7 @@ def test_small_js_flags(self):
42044204
print('size:', size)
42054205
# Note that this size includes test harness additions (for reporting the result, etc.).
42064206
if not self.is_wasm64() and not self.is_2gb():
4207-
self.assertLess(abs(size - 3377), 100)
4207+
self.assertLess(abs(size - 4592), 100)
42084208

42094209
# Tests that it is possible to initialize and render WebGL content in a
42104210
# pthread by using OffscreenCanvas.

test/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8544,7 +8544,7 @@ def test_binaryen_warn_mem(self):
85448544
self.run_process([EMCC, test_file('hello_world.c'), '-sINITIAL_MEMORY=' + str(16 * 1024 * 1024), '--pre-js', 'pre.js', '-sWASM_ASYNC_COMPILATION=0', '-sIMPORTED_MEMORY'])
85458545
out = self.run_js('a.out.js', assert_returncode=NON_ZERO)
85468546
self.assertContained('LinkError', out)
8547-
self.assertContained("memory import 1 has a larger maximum size 800 than the module's declared maximum", out)
8547+
self.assertContained("has a larger maximum size 800 than the module's declared maximum", out)
85488548
self.assertNotContained('hello, world!', out)
85498549
# and with memory growth, all should be good
85508550
self.run_process([EMCC, test_file('hello_world.c'), '-sINITIAL_MEMORY=' + str(16 * 1024 * 1024), '--pre-js', 'pre.js', '-sALLOW_MEMORY_GROWTH', '-sWASM_ASYNC_COMPILATION=0', '-sIMPORTED_MEMORY'])

0 commit comments

Comments
 (0)