From dd3c1b686e2c848d230f46f573e398e81894d38f Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Wed, 8 Oct 2025 16:39:25 +0200 Subject: [PATCH] [document-updater] fix test after other async/await work (#28944) GitOrigin-RevId: 7338f340924b3355dac39a86c40327a2964c3020 --- .../acceptance/js/ApplyingUpdatesToProjectStructureTests.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/document-updater/test/acceptance/js/ApplyingUpdatesToProjectStructureTests.js b/services/document-updater/test/acceptance/js/ApplyingUpdatesToProjectStructureTests.js index 993ab9f504..2ffd050fdd 100644 --- a/services/document-updater/test/acceptance/js/ApplyingUpdatesToProjectStructureTests.js +++ b/services/document-updater/test/acceptance/js/ApplyingUpdatesToProjectStructureTests.js @@ -19,11 +19,11 @@ async function sendProjectUpdateAndWait(projectId, docId, update, version) { } describe("Applying updates to a project's structure", function () { - before(function (done) { + before(async function () { this.user_id = 'user-id-123' this.version = 1234 - DocUpdaterApp.ensureRunning(done) + await DocUpdaterApp.ensureRunning() }) describe('renaming a file', function () { @@ -36,7 +36,6 @@ describe("Applying updates to a project's structure", function () { newPathname: '/new-file-path', } this.updates = [this.fileUpdate] - await DocUpdaterApp.ensureRunning() await sendProjectUpdateAndWait( this.project_id, this.user_id,