Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions e2e/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ const putKeys = async (state, keys, { ttl, batchSize = 50 }) => {
}
const waitFor = (ms) => new Promise(resolve => setTimeout(resolve, ms))
const listAll = async (state, options = {}) => {
// since https://git.corp.adobe.com/CNA/adp-storage-state/pull/88 we are
// listing against a replica so we need to wait for the replica to be in sync
// to have exact results. The replication lag is about ~5ms, let's be
// conservative to avoid test failures.
waitFor(100)
const acc = []
for await (const { keys } of state.list(options)) {
acc.push(...keys)
Expand Down