Skip to content

Commit

Permalink
Fix ozone preferences test (bluesky-social#3001)
Browse files Browse the repository at this point in the history
use consistent ordering of insertion
  • Loading branch information
matthieusieben authored Nov 14, 2024
1 parent 879a74f commit c34426f
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions packages/ozone/tests/settings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,32 +149,30 @@ describe('ozone-settings', () => {

describe('listOptions', () => {
beforeAll(async () => {
await Promise.all([
upsertOption({
scope: 'instance',
key: 'tools.ozone.setting.client.queues',
value: { stratosphere: { name: 'Stratosphere' } },
description:
'This determines how many queues the client interface will show',
managerRole: 'tools.ozone.team.defs#roleAdmin',
}),
upsertOption({
scope: 'instance',
key: 'tools.ozone.setting.client.queueHash',
value: { val: 10.5 },
description:
'This determines how each queue is balanced when sorted by oldest first',
managerRole: 'tools.ozone.team.defs#roleAdmin',
}),
upsertOption({
scope: 'instance',
key: 'tools.ozone.setting.client.externalLabelers',
value: { dids: ['did:plc:xyz'] },
description:
'List of external labelers that will be plugged into the client views',
managerRole: 'tools.ozone.team.defs#roleAdmin',
}),
])
await upsertOption({
scope: 'instance',
key: 'tools.ozone.setting.client.queues',
value: { stratosphere: { name: 'Stratosphere' } },
description:
'This determines how many queues the client interface will show',
managerRole: 'tools.ozone.team.defs#roleAdmin',
})
await upsertOption({
scope: 'instance',
key: 'tools.ozone.setting.client.queueHash',
value: { val: 10.5 },
description:
'This determines how each queue is balanced when sorted by oldest first',
managerRole: 'tools.ozone.team.defs#roleAdmin',
})
await upsertOption({
scope: 'instance',
key: 'tools.ozone.setting.client.externalLabelers',
value: { dids: ['did:plc:xyz'] },
description:
'List of external labelers that will be plugged into the client views',
managerRole: 'tools.ozone.team.defs#roleAdmin',
})
})

afterAll(async () => {
Expand Down

0 comments on commit c34426f

Please sign in to comment.