Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinJanuel authored and koskimas committed Jul 27, 2024
1 parent 0ba1ca0 commit b3f0787
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/node/src/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,14 @@ for (const dialect of DIALECTS) {
})

it('should refresh a materialized view concurrently', async () => {
// concurrent refreshes require a unique index
await ctx.db.schema
.createIndex('materialized_dogs_index')
.unique()
.on('materialized_dogs')
.columns(['id'])
.execute()

const builder = ctx.db.schema
.refreshMaterializedView('materialized_dogs')
.concurrently()
Expand Down

0 comments on commit b3f0787

Please sign in to comment.