Skip to content

Commit

Permalink
test: update tigerbeetle
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov committed Jul 4, 2023
1 parent 36a380f commit ac6d8d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"pino": "^8.14.1",
"pino-pretty": "^10.0.0",
"raw-body": "^2.5.2",
"tigerbeetle-node": "^0.12.76",
"tigerbeetle-node": "^0.13.38",
"token-introspection": "workspace:../token-introspection",
"uuid": "^9.0.0"
}
Expand Down
9 changes: 3 additions & 6 deletions packages/backend/src/tests/tigerbeetle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ export async function startTigerbeetleContainer(clusterId?: number): Promise<{
const tigerbeetleClusterId = clusterId || Config.tigerbeetleClusterId
const { name: tigerbeetleDir } = tmp.dirSync({ unsafeCleanup: true })
const tigerbeetleFile = `cluster_${tigerbeetleClusterId}_replica_0_test.tigerbeetle`
const tigerbeetleContainerVersion = 'ghcr.io/tigerbeetle/tigerbeetle:0.13.38'

const tbContFormat = await new GenericContainer(
'ghcr.io/tigerbeetledb/tigerbeetle@sha256:3e2954cba78e17db42013e56fd9850a6047f7caa6f30dd7c46ff932c809af10c'
)
const tbContFormat = await new GenericContainer(tigerbeetleContainerVersion)
.withExposedPorts(TIGERBEETLE_PORT)
.withBindMounts([
{
Expand Down Expand Up @@ -49,9 +48,7 @@ export async function startTigerbeetleContainer(clusterId?: number): Promise<{
.on('end', () => console.log('Stream closed for [tb-format]'))
}

const tbContStart = await new GenericContainer(
'ghcr.io/tigerbeetledb/tigerbeetle@sha256:3e2954cba78e17db42013e56fd9850a6047f7caa6f30dd7c46ff932c809af10c'
)
const tbContStart = await new GenericContainer(tigerbeetleContainerVersion)
.withExposedPorts(TIGERBEETLE_PORT)
.withBindMounts([
{
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac6d8d1

Please sign in to comment.