-function getAnnounceWithoutContext (server2: ServerInfo) {
- const json = require('./json/peertube/announce-without-context.json')
+function setUpdatedAtOfServer (onServer: ServerInfo, ofServer: ServerInfo, updatedAt: string) {
+ const url = 'http://localhost:' + ofServer.port + '/accounts/peertube'
+
+ return Promise.all([
+ setActorField(onServer.internalServerNumber, url, 'createdAt', updatedAt),
+ setActorField(onServer.internalServerNumber, url, 'updatedAt', updatedAt)
+ ])
+}
+
+function getAnnounceWithoutContext (server: ServerInfo) {
+ const json = require(buildAbsoluteFixturePath('./ap-json/peertube/announce-without-context.json'))