Skip to content

Commit

Permalink
fix: consertando workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoh5 committed Nov 27, 2023
1 parent a5c17f8 commit 319bedf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
image: bitnami/postgresql
ports:
- 5432:5432
environment:
- POSTGRESQL_USERNAME=docker
- POSTGRESQL_PASSWORD=docker
- POSTGRESQL_DATABASE=apisolid
env:
POSTGRESQL_USERNAME: docker
POSTGRESQL_PASSWORD: docker
POSTGRESQL_DATABASE: apisolid

steps:
- name: Download Application
Expand Down
5 changes: 2 additions & 3 deletions src/use-cases/fetch-user-check-ins-history.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, beforeEach, expect } from 'vitest'
import { InMemoryCheckInsRepository } from '@/repositories/in-memory/in-memory-check-ins-repository'
import { beforeEach, describe, expect, it } from 'vitest'
import { FetchUserCheckInsHistoryUseCase } from './fetch-user-check-ins-history'

let checkInsRepository: InMemoryCheckInsRepository
Expand Down Expand Up @@ -34,8 +34,7 @@ describe('Fetch Check-in History Use Case', () => {
])
})

it.skip('should be able to fetch paginated user check-in history', async () => {
// Out of memory
it('should be able to fetch paginated user check-in history', async () => {
for (let i = 1; 1 <= 22; i++) {
await checkInsRepository.create({
gym_id: `gym-${i}`,
Expand Down
5 changes: 2 additions & 3 deletions src/use-cases/search-gyms.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, beforeEach, expect } from 'vitest'
import { InMemoryGymsRepository } from '@/repositories/in-memory/in-memory-gyms-repository'
import { beforeEach, describe, expect, it } from 'vitest'
import { SearchGymsUseCase } from './search-gyms'

let gymsRepository: InMemoryGymsRepository
Expand Down Expand Up @@ -37,8 +37,7 @@ describe('Search Gyms Use Case', () => {
expect(gyms).toEqual([expect.objectContaining({ title: 'Javascript Gym' })])
})

it.skip('should be able to fetch paginated gyms search', async () => {
// skip by Out of memory
it('should be able to fetch paginated gyms search', async () => {
for (let i = 1; 1 <= 22; i++) {
await gymsRepository.create({
title: `Javascript Gym ${i}`,
Expand Down

0 comments on commit 319bedf

Please sign in to comment.