diff --git a/front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js b/front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js index fa36d7c003..0498f1a806 100644 --- a/front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js +++ b/front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js @@ -23,7 +23,7 @@ Persistence.AutomappingStatus.prototype.toString = function() { return lines.join('\n'); }; -BindingsTestRunner.waitForBinding = function(fileName) { +BindingsTestRunner.waitForBinding = async function(fileName) { const uiSourceCodes = self.Workspace.workspace.uiSourceCodes(); for (const uiSourceCode of uiSourceCodes) { @@ -34,7 +34,7 @@ BindingsTestRunner.waitForBinding = function(fileName) { } if (uiSourceCode.name() === fileName) { - return Promise.resolve(binding); + return binding; } }