mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-24 18:13:06 +00:00
test: resolve searchStaffMunicipalityHits conflict after rebase
This commit is contained in:
parent
1cfe6948d2
commit
aa0cc4e15a
2 changed files with 2 additions and 11 deletions
|
|
@ -1,19 +1,19 @@
|
||||||
import { resolveActivityQuickActions } from '@/lib/activityQuickActions'
|
import { resolveActivityQuickActions } from '@/lib/activityQuickActions'
|
||||||
import { resolveStaffHomeQuickActions } from '@/lib/campaignHomeActions'
|
import { resolveStaffHomeQuickActions } from '@/lib/campaignHomeActions'
|
||||||
import { resolveMunicipalityQuickActionsForPath } from '@/lib/campaignMunicipalityQuickActions'
|
import { resolveMunicipalityQuickActionsForPath } from '@/lib/campaignMunicipalityQuickActions'
|
||||||
|
import { CAMPAIGN_TERRITORIES_HOME } from '@/lib/campaignPaths'
|
||||||
|
import type { CampaignQuickActionContext } from '@/lib/campaignQuickActionContext'
|
||||||
import {
|
import {
|
||||||
isDemandDetailPath,
|
isDemandDetailPath,
|
||||||
isDemandsListPath,
|
isDemandsListPath,
|
||||||
resolveDemandDetailQuickActions,
|
resolveDemandDetailQuickActions,
|
||||||
resolveDemandsListQuickActions,
|
resolveDemandsListQuickActions,
|
||||||
} from '@/lib/campaignQuickActionDemands'
|
} from '@/lib/campaignQuickActionDemands'
|
||||||
import type { CampaignQuickActionContext } from '@/lib/campaignQuickActionContext'
|
|
||||||
import {
|
import {
|
||||||
parseActivityQuickActionSurface,
|
parseActivityQuickActionSurface,
|
||||||
parseOrganizationQuickActionSurface,
|
parseOrganizationQuickActionSurface,
|
||||||
} from '@/lib/campaignQuickActionPaths'
|
} from '@/lib/campaignQuickActionPaths'
|
||||||
import type { CampaignQuickAction } from '@/lib/campaignQuickActionTypes'
|
import type { CampaignQuickAction } from '@/lib/campaignQuickActionTypes'
|
||||||
import { CAMPAIGN_TERRITORIES_HOME } from '@/lib/campaignPaths'
|
|
||||||
import type { CampaignRole } from '@/lib/campaignRoles'
|
import type { CampaignRole } from '@/lib/campaignRoles'
|
||||||
import { resolveOrganizationQuickActions } from '@/lib/organizationQuickActions'
|
import { resolveOrganizationQuickActions } from '@/lib/organizationQuickActions'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,11 +49,7 @@ describe('searchStaffMunicipalityHits (B60)', () => {
|
||||||
|
|
||||||
const administered = await fixtures.getMunicipality()
|
const administered = await fixtures.getMunicipality()
|
||||||
let other = await fixtures.getMunicipality()
|
let other = await fixtures.getMunicipality()
|
||||||
<<<<<<< HEAD
|
|
||||||
for (let attempt = 0; attempt < 30; attempt++) {
|
for (let attempt = 0; attempt < 30; attempt++) {
|
||||||
=======
|
|
||||||
for (let attempt = 0; attempt < 24; attempt += 1) {
|
|
||||||
>>>>>>> 8e4385e (test: retry municipality pair when word-start queries collide)
|
|
||||||
try {
|
try {
|
||||||
distinctWordStartQuery(other.name, administered.name)
|
distinctWordStartQuery(other.name, administered.name)
|
||||||
distinctWordStartQuery(administered.name, other.name)
|
distinctWordStartQuery(administered.name, other.name)
|
||||||
|
|
@ -61,15 +57,10 @@ describe('searchStaffMunicipalityHits (B60)', () => {
|
||||||
} catch {
|
} catch {
|
||||||
other = await fixtures.getMunicipality()
|
other = await fixtures.getMunicipality()
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
if (attempt === 29) {
|
if (attempt === 29) {
|
||||||
throw new Error('could not allocate two municipalities with distinct word-start queries')
|
throw new Error('could not allocate two municipalities with distinct word-start queries')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await fixtures.assignMunicipalityAdvisors(administered.id, [advisor.id])
|
|
||||||
=======
|
|
||||||
}
|
|
||||||
>>>>>>> 8e4385e (test: retry municipality pair when word-start queries collide)
|
|
||||||
|
|
||||||
const otherQuery = distinctWordStartQuery(other.name, administered.name)
|
const otherQuery = distinctWordStartQuery(other.name, administered.name)
|
||||||
const administeredQuery = distinctWordStartQuery(administered.name, other.name)
|
const administeredQuery = distinctWordStartQuery(administered.name, other.name)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue