Skip to content

Commit

Permalink
debug: removed debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
flipsimon committed Nov 15, 2023
1 parent 68c4a94 commit 1e60eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/repco-core/test/util/setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'source-map-support/register.js'
import getPort from 'get-port'
import p from 'path'
import split2 from 'split2'
import { Test } from 'brittle'
import {
ChildProcess,
Expand All @@ -11,7 +12,6 @@ import type { Prisma } from 'repco-prisma'
import type { Readable } from 'stream'
import { fileURLToPath } from 'url'
import { PrismaClient } from '../../lib.js'
import split2 from 'split2'

const REPCO_ROOT = p.join(fileURLToPath(import.meta.url), '../../../../../..')
const dockerPids: number[] = []
Expand Down Expand Up @@ -115,6 +115,7 @@ async function waitForLines(stream: Readable, expected_lines: RegExp[]) {
await new Promise<void>((resolve) => {
let cur = expected_lines.shift()
stream.pipe(split2()).on('data', (line: string) => {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (line.match(cur!)) {
cur = expected_lines.shift()
if (!cur) resolve()
Expand Down
2 changes: 0 additions & 2 deletions packages/repco-server/test/smoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ async function startServer(assert: Test) {
const prisma = await setup(assert)
const port = await getPort()
const url = `http://localhost:${port}`
console.log('setup done')
console.log('contentitem find many', await prisma.contentItem.findMany())
const { shutdown, isReady } = runServer(prisma, port)
assert.teardown(shutdown, { order: Infinity })
await isReady
Expand Down

0 comments on commit 1e60eb4

Please sign in to comment.