Skip to content

Commit

Permalink
chore: switch test to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 19, 2024
1 parent 3c46397 commit 4940c59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion packages/interface-compliance-tests/src/pubsub/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isStartable, start, stop } from '@libp2p/interface'
import { isPubSub, isStartable, start, stop } from '@libp2p/interface'
import { expect } from 'aegir/chai'
import delay from 'delay'
import pDefer from 'p-defer'
Expand Down Expand Up @@ -39,6 +39,10 @@ export default (common: TestSetup<PubSub, PubSubArgs>): void => {
mockNetwork.reset()
})

it('is a PubSub implementation', () => {
expect(isPubSub(pubsub)).to.be.true()
})

it('can start correctly', async () => {
if (!isStartable(pubsub)) {
return
Expand Down
4 changes: 0 additions & 4 deletions packages/pubsub-floodsub/test/floodsub.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ describe('floodsub', () => {
await floodsub.stop()
})

it('is a PubSub implementation', () => {
expect(isPubSub(floodsub)).to.be.true()
})

it('checks cache when processing incoming message', async function () {
const otherPeer = peerIdFromPrivateKey(await generateKeyPair('Ed25519'))
const sig = await sha256.encode(message)
Expand Down

0 comments on commit 4940c59

Please sign in to comment.