Skip to content

Commit

Permalink
remove test/helpers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Nov 13, 2023
1 parent 8201470 commit abb5f03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 76 deletions.
74 changes: 0 additions & 74 deletions tests/helpers/index.js

This file was deleted.

10 changes: 8 additions & 2 deletions tests/sync/core-sync-state.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @ts-check
import NoiseSecretStream from '@hyperswarm/secret-stream'
import test from 'brittle'
import Hypercore from 'hypercore'
import RAM from 'random-access-memory'
import {
deriveState,
PeerState,
Expand All @@ -10,8 +12,6 @@ import {
import RemoteBitfield, {
BITS_PER_PAGE,
} from '../../src/core-manager/remote-bitfield.js'
import { createCore } from '../helpers/index.js'
// import { setTimeout } from 'timers/promises'
import { once } from 'node:events'
import pTimeout from 'p-timeout'
import { EventEmitter } from 'node:events'
Expand Down Expand Up @@ -351,6 +351,12 @@ test.skip('bitCount32', (t) => {
}
})

async function createCore(key) {
const core = new Hypercore(RAM, key)
await core.ready()
return core
}

/**
* Slow but understandable implementation to compare with fast obscure implementation
* @param {number} n
Expand Down

0 comments on commit abb5f03

Please sign in to comment.