Skip to content

Commit

Permalink
fix: test plaintext properly (#89)
Browse files Browse the repository at this point in the history
The noise test was being run twice..
  • Loading branch information
achingbrain committed Dec 1, 2023
1 parent 1092fed commit 4295c61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"dependencies": {
"@chainsafe/libp2p-noise": "^14.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@libp2p/plaintext": "^1.0.4",
"@libp2p/tcp": "^9.0.4",
"it-pipe": "^3.0.1",
"libp2p": "^1.0.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable no-console */

import { yamux } from '@chainsafe/libp2p-yamux'
import { plaintext } from '@libp2p/plaintext'
import { tcp } from '@libp2p/tcp'
import { pipe } from 'it-pipe'
import { createLibp2p } from 'libp2p'
import { plaintext } from 'libp2p/insecure'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ await waitForOutput('This information is sent out encrypted to the other peer',

process.stdout.write('plaintext.js\n')

await waitForOutput('This information is sent out encrypted to the other peer', 'node', [path.join(__dirname, '../noise.js')], {
await waitForOutput('This information is sent out encrypted to the other peer', 'node', [path.join(__dirname, '../plaintext.js')], {
cwd: __dirname
})

0 comments on commit 4295c61

Please sign in to comment.