Skip to content

Commit

Permalink
ci: skip redis tests on windows machine
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 1, 2023
1 parent 1c88b37 commit 737052c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/concurrent_session.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ test.group('Concurrency | file driver', () => {
}).timeout(6000)
})

test.group('Concurrency | redis driver', () => {
test.group('Concurrency | redis driver', (group) => {
group.tap((t) => {
t.skip(!!process.env.NO_REDIS, 'Redis not available in windows env')
})

test('concurrently read and read slowly', async ({ assert, cleanup }) => {
let sessionId = cuid()
cleanup(async () => {
Expand Down
4 changes: 4 additions & 0 deletions tests/drivers/redis_driver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ declare module '@adonisjs/redis/types' {
}

test.group('Redis driver', (group) => {
group.tap((t) => {
t.skip(!!process.env.NO_REDIS, 'Redis not available in windows env')
})

group.each.setup(() => {
return async () => {
await redis.del(sessionId)
Expand Down

0 comments on commit 737052c

Please sign in to comment.