Skip to content

Commit 8d48510

Browse files
committed
fix tests
1 parent 368250c commit 8d48510

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

api/test/round-tracker.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ describe('Round Tracker', () => {
3030
pgPool = new pg.Pool({ connectionString: DATABASE_URL })
3131
pgClient = await pgPool.connect()
3232
await migrate(pgClient)
33+
await pgClient.query(`
34+
UPDATE retrievable_deals SET expires_at = NOW() + INTERVAL '1 year'
35+
`)
3336
})
3437

3538
after(async () => {

api/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,9 @@ describe('Routes', () => {
691691
const body = await res.json()
692692
assert.deepStrictEqual(body, {
693693
minerId: 'f0230',
694-
dealCount: 4,
694+
dealCount: 5,
695695
clients: [
696-
{ clientId: 'f0800', dealCount: 2 },
696+
{ clientId: 'f0800', dealCount: 3 },
697697
{ clientId: 'f0810', dealCount: 1 },
698698
{ clientId: 'f0820', dealCount: 1 }
699699
]
@@ -721,9 +721,9 @@ describe('Routes', () => {
721721
const body = await res.json()
722722
assert.deepStrictEqual(body, {
723723
clientId: 'f0800',
724-
dealCount: 4,
724+
dealCount: 5,
725725
providers: [
726-
{ minerId: 'f0230', dealCount: 2 },
726+
{ minerId: 'f0230', dealCount: 3 },
727727
{ minerId: 'f0210', dealCount: 1 },
728728
{ minerId: 'f0220', dealCount: 1 }
729729
]
@@ -751,9 +751,9 @@ describe('Routes', () => {
751751
const body = await res.json()
752752
assert.deepStrictEqual(body, {
753753
allocatorId: 'f0500',
754-
dealCount: 6,
754+
dealCount: 7,
755755
clients: [
756-
{ clientId: 'f0800', dealCount: 4 },
756+
{ clientId: 'f0800', dealCount: 5 },
757757
{ clientId: 'f0810', dealCount: 2 }
758758
]
759759
})

0 commit comments

Comments
 (0)