Skip to content

Commit

Permalink
chore: fix compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Feb 2, 2024
1 parent c832c19 commit 6120938
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions suite/src/__tests__/fast/update.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CeramicApi, SyncOptions } from '@ceramicnetwork/common'
import { StreamReaderWriter, SyncOptions } from '@ceramicnetwork/common'
import CeramicClient from '@ceramicnetwork/http-client'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { afterAll, beforeAll, expect, test, describe } from '@jest/globals'
Expand Down Expand Up @@ -38,7 +38,7 @@ function testUpdate(composeDbUrls: string[]) {
// Create and update on first node
test(`create stream on ${firstNodeUrl}`, async () => {
firstCeramic = await newCeramic(firstNodeUrl)
firstTile = await TileDocument.create(firstCeramic as CeramicApi, content, metadata, {
firstTile = await TileDocument.create(firstCeramic as StreamReaderWriter, content, metadata, {
anchor: false,
})
console.log(
Expand Down
4 changes: 2 additions & 2 deletions suite/src/__tests__/slow/ceramic-cas-integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnchorStatus, CeramicApi } from '@ceramicnetwork/common'
import { AnchorStatus, StreamReaderWriter } from '@ceramicnetwork/common'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { jest, describe, test, beforeAll, expect } from '@jest/globals'
import { newCeramic, waitForAnchor } from '../../utils/ceramicHelpers.js'
Expand All @@ -8,7 +8,7 @@ const ComposeDbUrls = String(process.env.COMPOSEDB_URLS).split(',')
// Skipped https://linear.app/3boxlabs/issue/WS1-1460/unskip-ceramic-cas-basic-integration
describe.skip('Ceramic<->CAS basic integration', () => {
jest.setTimeout(1000 * 60 * 60) // 1 hour
let ceramic: CeramicApi
let ceramic: StreamReaderWriter

beforeAll(async () => {
ceramic = await newCeramic(ComposeDbUrls[0])
Expand Down
14 changes: 7 additions & 7 deletions suite/src/__tests__/slow/ceramic-ceramic-integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CeramicApi, StreamUtils } from '@ceramicnetwork/common'
import { StreamReaderWriter, StreamUtils } from '@ceramicnetwork/common'
import { TileDocument } from '@ceramicnetwork/stream-tile'
import { jest, describe, test, beforeAll, expect } from '@jest/globals'
import { newCeramic, waitForAnchor, waitForCondition } from '../../utils/ceramicHelpers.js'
Expand All @@ -7,8 +7,8 @@ const UPDATE_TIMEOUT = 60 // 60 seconds for regular updates to propagate from on
const ComposeDbUrls = String(process.env.COMPOSEDB_URLS).split(',')

const createWithOneLoadWithTheOther = async (
ceramic1: CeramicApi,
ceramic2: CeramicApi,
ceramic1: StreamReaderWriter,
ceramic2: StreamReaderWriter,
): Promise<void> => {
const content = { foo: 'bar' }
const doc1 = await TileDocument.create(ceramic1, content)
Expand All @@ -18,8 +18,8 @@ const createWithOneLoadWithTheOther = async (
}

const updatesAreShared = async (
ceramic1: CeramicApi,
ceramic2: CeramicApi,
ceramic1: StreamReaderWriter,
ceramic2: StreamReaderWriter,
anchor: boolean,
): Promise<void> => {
const content0 = { foo: 0 }
Expand Down Expand Up @@ -96,8 +96,8 @@ const updatesAreShared = async (

describe.skip('Ceramic<->Ceramic multi-node integration', () => {
jest.setTimeout(1000 * 60 * 60) // 1 hour
let ceramic1: CeramicApi
let ceramic2: CeramicApi
let ceramic1: StreamReaderWriter
let ceramic2: StreamReaderWriter

beforeAll(async () => {
ceramic1 = await newCeramic(ComposeDbUrls[0])
Expand Down

0 comments on commit 6120938

Please sign in to comment.