Skip to content

Commit

Permalink
Upgraded the tests for the persistence to fail if the an error occurs…
Browse files Browse the repository at this point in the history
… while saving
  • Loading branch information
AdrienCastex committed Jul 3, 2017
1 parent 67d7c5e commit 7f7a3cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/v2/tests.ts/persistence/.createPersistenceContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export function starter(info : TestInfo, isValid : TestCallback, callback : (ser
const server = info.startServer({
autoSave: {
treeFilePath: file,
tempTreeFilePath: fileTemp
tempTreeFilePath: fileTemp,
onSaveError: (e) => {
isValid(false, e);
}
}
})
server.rootFileSystem().addSubTree(v2.ExternalRequestContext.create(server), {
Expand Down

0 comments on commit 7f7a3cd

Please sign in to comment.