mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-13 13:48:59 +02:00
update other tests
This commit is contained in:
parent
34eae99656
commit
a579fa2099
@ -274,7 +274,7 @@ test('should not return instances older than 24h', async () => {
|
||||
await db.stores.clientApplicationsStore.upsert({
|
||||
appName: metrics.appName,
|
||||
});
|
||||
await db.stores.clientInstanceStore.insert({
|
||||
await db.stores.clientInstanceStore.upsert({
|
||||
appName: metrics.appName,
|
||||
clientIp: '127.0.0.1',
|
||||
instanceId: 'old-instance',
|
||||
|
@ -47,15 +47,15 @@ beforeEach(async () => {
|
||||
announced: true,
|
||||
});
|
||||
|
||||
await db.stores.clientInstanceStore.insert({
|
||||
await db.stores.clientInstanceStore.upsert({
|
||||
appName: 'demo-app-1',
|
||||
instanceId: 'test-1',
|
||||
});
|
||||
await db.stores.clientInstanceStore.insert({
|
||||
await db.stores.clientInstanceStore.upsert({
|
||||
appName: 'demo-seed-2',
|
||||
instanceId: 'test-2',
|
||||
});
|
||||
await db.stores.clientInstanceStore.insert({
|
||||
await db.stores.clientInstanceStore.upsert({
|
||||
appName: 'deletable-app',
|
||||
instanceId: 'inst-1',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user