[document-updater] fix test after other async/await work (#28944)

GitOrigin-RevId: 7338f340924b3355dac39a86c40327a2964c3020
This commit is contained in:
Jakob Ackermann
2025-10-08 16:39:25 +02:00
committed by Copybot
parent 3211c7c37a
commit dd3c1b686e

View File

@@ -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,