Skip to content

Commit

Permalink
test: fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 2, 2022
1 parent eecdc56 commit 6ea257b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/commands/db-seed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test.group('DbSeed', (group) => {

group.afterEach(async () => {
await cleanup()
await cleanup(['adonis_schema', 'schema_users', 'schema_accounts'])
await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users', 'schema_accounts'])
await fs.cleanup()
})

Expand Down
2 changes: 1 addition & 1 deletion test/commands/make-migration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test.group('MakeMigration', (group) => {

group.after(async () => {
await cleanup()
await cleanup(['adonis_schema', 'schema_users', 'schema_accounts'])
await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users', 'schema_accounts'])
await fs.cleanup()
})

Expand Down
2 changes: 1 addition & 1 deletion test/commands/migrate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.group('Migrate', (group) => {

group.afterEach(async () => {
await cleanup()
await cleanup(['adonis_schema', 'schema_users', 'schema_accounts'])
await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users', 'schema_accounts'])
await fs.cleanup()
})

Expand Down
2 changes: 1 addition & 1 deletion test/commands/wipe-fresh.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test.group('db:wipe and migrate:fresh', (group) => {

group.afterEach(async () => {
await cleanup()
await cleanup(['adonis_schema', 'schema_users'])
await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users'])
await fs.cleanup()
})

Expand Down
4 changes: 2 additions & 2 deletions test/migrations/migrator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ test.group('Migrator', (group) => {
table.increments().notNullable()
table.string('name').notNullable()
table.integer('batch').notNullable()
table.timestamp('migration_time').defaultTo('now()')
table.timestamp('migration_time').defaultTo(db.connection().getWriteClient().fn.now())
})
}

Expand Down Expand Up @@ -1224,7 +1224,7 @@ test.group('Migrator', (group) => {
table.increments().notNullable()
table.string('name').notNullable()
table.integer('batch').notNullable()
table.timestamp('migration_time').defaultTo('now()')
table.timestamp('migration_time').defaultTo(db.connection().getWriteClient().fn.now())
})
}

Expand Down

0 comments on commit 6ea257b

Please sign in to comment.