Skip to content

Commit de8b02c

Browse files
authored
Remove unnecessary .then from test_modularize_incoming (#24139)
Using `await` and `.then` on the same object doesn't really make sense.
1 parent 567ad44 commit de8b02c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_other.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7066,8 +7066,8 @@ def test_modularize_incoming(self, args):
70667066
self.run_process([EMCC, test_file('hello_world.c'), '-o', 'out.mjs'] + self.get_emcc_args() + args)
70677067
create_file('run.mjs', '''
70687068
import Module from './out.mjs';
7069-
await Module({onRuntimeInitialized: () => console.log('done init')})
7070-
.then(() => console.log('got module'));
7069+
await Module({onRuntimeInitialized: () => console.log('done init')});
7070+
console.log('got module');
70717071
''')
70727072
output = self.run_js('run.mjs')
70737073
self.assertContained('done init\nhello, world!\ngot module\n', output)

0 commit comments

Comments
 (0)