diff --git a/test/tests/storageRequestTest.js b/test/tests/storageRequestTest.js index 9ab0b0c2d..300d4e17b 100644 --- a/test/tests/storageRequestTest.js +++ b/test/tests/storageRequestTest.js @@ -5,10 +5,11 @@ describe("Zotero.Sync.Storage.Request", function () { it("should run a request and wait for it to complete", function* () { var libraryID = Zotero.Libraries.userLibraryID; var count = 0; + var item = yield importFileAttachment('test.png'); var request = new Zotero.Sync.Storage.Request({ type: 'download', libraryID, - name: "1/AAAAAAAA", + name: `${item.libraryID}/${item.key}`, onStart: Zotero.Promise.coroutine(function* () { yield Zotero.Promise.delay(25); count++;