chore: refactor history e2e tests (#2468)

This commit is contained in:
Karol Sójko
2023-08-29 10:59:23 +02:00
committed by GitHub
parent f98877cd93
commit 0dd3124acf
3 changed files with 20 additions and 18 deletions

View File

@@ -35,7 +35,7 @@ export class VaultsContext extends AppContext {
}
async syncAndAwaitNotificationsProcessing() {
await this.sleep(0.25, 'Waiting for notifications to propagate')
await this.sleep(1, 'Waiting for notifications to propagate')
const promise = this.resolveWhenAsyncFunctionCompletes(this.notifications, 'handleReceivedNotifications')
@@ -43,7 +43,7 @@ export class VaultsContext extends AppContext {
await this.awaitPromiseOrDoNothing(
promise,
0.25,
1,
'Waiting for notifications timed out. Notifications might have been processed in previous sync.'
)

View File

@@ -287,8 +287,8 @@ export async function storagePayloadCount(application) {
* The number of seconds between changes before a server creates a new revision.
* Controlled via docker/syncing-server-js.env
*/
export const ServerRevisionFrequency = 2.5
export const ServerRevisionCreationDelay = 2.5
export const ServerRevisionFrequency = 2.1
export const ServerRevisionCreationDelay = 1.0
export function yesterday() {
return new Date(new Date().setDate(new Date().getDate() - 1))