Skip to content

Commit

Permalink
fix: try to make test less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe committed Jul 12, 2024
1 parent 44eb9e6 commit c5ed8df
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,19 @@ jobs:
run: pnpm run check
continue-on-error: true

- name: 📦 Build Packages
id: build
run: pnpm run build:packages
continue-on-error: true

- name: 🚧 Test
id: test
run: pnpm turbo run test --concurrency=1

# - name: 🚧 Test 1
# id: test-1
# run: pnpm turbo run test --concurrency=1 --filter='!@supabase-cache-helpers/postgrest-swr' --filter='!@supabase-cache-helpers/postgrest-react-query'
#
# - name: 🚧 Test 2
# id: test-2
# run: pnpm run test
# working-directory: packages/postgrest-swr
#
# - name: 🚧 Test 3
# id: test-3
# run: pnpm run test
# working-directory: packages/postgrest-react-query
- name: 🚧 Test 1
id: test-1
run: pnpm turbo run test --concurrency=1 --filter='!@supabase-cache-helpers/postgrest-swr' --filter='!@supabase-cache-helpers/postgrest-react-query'

- name: 🚧 Test 2
id: test-2
run: pnpm run test
working-directory: packages/postgrest-swr

- name: 🚧 Test 3
id: test-3
run: pnpm run test
working-directory: packages/postgrest-react-query

- name: Upload postgrest-core coverage
uses: codecov/codecov-action@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { renderWithConfig } from '../utils';

const TEST_PREFIX = 'postgrest-react-query-subscription-query';

describe('useSubscriptionQuery', { timeout: 20000, retry: 3 }, () => {
describe('useSubscriptionQuery', { timeout: 20000 }, () => {
let client: SupabaseClient<Database>;
let testRunPrefix: string;

Expand Down

0 comments on commit c5ed8df

Please sign in to comment.