mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 23:11:29 -04:00
Initialize snowflake instance with a config
This commit is contained in:
parent
edbbea1d03
commit
2d8a1690ba
11 changed files with 125 additions and 113 deletions
|
@ -24,10 +24,11 @@ arrayMatching = (sample) -> {
|
|||
|
||||
describe 'ProxyPair', ->
|
||||
fakeRelay = Parse.address '0.0.0.0:12345'
|
||||
rateLimit = new DummyRateLimit()
|
||||
rateLimit = new DummyRateLimit
|
||||
config = new Config
|
||||
destination = []
|
||||
# Using the mock PeerConnection definition from spec/snowflake.spec.coffee.
|
||||
pp = new ProxyPair(fakeRelay, rateLimit)
|
||||
pp = new ProxyPair(fakeRelay, rateLimit, config.pcConfig)
|
||||
|
||||
beforeEach ->
|
||||
pp.begin()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue