Skip to content

Instantly share code, notes, and snippets.

@benhutchison
Created January 12, 2022 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhutchison/0f22aa4d37e79f25f380c359761248a6 to your computer and use it in GitHub Desktop.
Save benhutchison/0f22aa4d37e79f25f380c359761248a6 to your computer and use it in GitHub Desktop.
~/workspace/binance-scala-client (master)$> sbt test
Getting org.scala-sbt sbt 1.6.1 (this may take some time)...
[snip]
[info] compiling 11 Scala sources to /Users/ben/workspace/binance-scala-client/target/scala-2.13/classes ...
[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.7. Compiling...
[info] Compilation completed in 8.261s.
[info] compiling 13 Scala sources to /Users/ben/workspace/binance-scala-client/target/scala-2.13/test-classes ...
[warn] 1 feature warning; re-run with -feature for details
[warn] one warning found
[info] HMACTest:
[info] - it should generate a valid SHA-256 HMAC signature for a given plain text
[info] QueryParamsConverterTest:
[info] - it should convert a query string to an object
[info] - it should convert sum types
[info] SpotExchangeInfoJsonTest:
[info] Spot ExchangeInfos
[info] - should be decodeable from json
[io-compute-5] INFO org.eclipse.jetty.util.log - Logging initialized @144468ms
[io-compute-8] INFO org.eclipse.jetty.server.Server - jetty-9.2.28.v20190418
[io-compute-2] INFO org.eclipse.jetty.server.Server - jetty-9.2.28.v20190418
[io-compute-5] INFO org.eclipse.jetty.server.Server - jetty-9.2.28.v20190418
[io-compute-8] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@663e949{/__admin,null,AVAILABLE}
[io-compute-2] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@402e8a1a{/__admin,null,AVAILABLE}
[io-compute-5] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@482d7095{/__admin,null,AVAILABLE}
[io-compute-8] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@4b5dcc67{/,null,AVAILABLE}
[io-compute-5] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@4df06e91{/,null,AVAILABLE}
[io-compute-2] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@62c0475a{/,null,AVAILABLE}
[io-compute-2] INFO org.eclipse.jetty.server.NetworkTrafficServerConnector - Started NetworkTrafficServerConnector@3907c7d5{HTTP/1.1}{0.0.0.0:8997}
[io-compute-5] INFO org.eclipse.jetty.server.NetworkTrafficServerConnector - Started NetworkTrafficServerConnector@3a496a96{HTTP/1.1}{0.0.0.0:8999}
[io-compute-5] INFO org.eclipse.jetty.server.Server - Started @144631ms
[io-compute-2] INFO org.eclipse.jetty.server.Server - Started @144631ms
[io-compute-8] INFO org.eclipse.jetty.server.NetworkTrafficServerConnector - Started NetworkTrafficServerConnector@61020e80{HTTP/1.1}{0.0.0.0:8998}
[io-compute-8] INFO org.eclipse.jetty.server.Server - Started @144632ms
[info] FApiExchangeInfoJsonTest:
[info] FApi ExchangeInfos
[info] - should be decodeable from json
[info] FilterTypeJsonTest:
[info] PERCENT_PRICE
[info] - should be able to being decoded from json
[info] MAX_NUM_ALGO_ORDERS
[info] - should be able to being decoded from json
[info] MAX_NUM_ORDERS
[info] - should be able to being decoded from json
[info] RateLimiterTest:
[info] - it should rate limit when frequency is greater than limit
[info] - it should rate limit when frequency is greater than limit and weight > 1
[info] - it should not rate limit when frequency is lower than limit
[qtp182771257-376] INFO / - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'i.http.ratelimit.RateLimiterTest 0s
[qtp1174651173-371] INFO / - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'.http.HttpClientTest 0s
[qtp815782125-378] INFO / - RequestHandlerClass from context returned com.github.tomakehurst.wiremock.http.StubRequestHandler. Normalized mapped under returned 'null'i.binance.FapiClientIntegrationTest 0s
[io-compute-8] INFO org.eclipse.jetty.server.NetworkTrafficServerConnector - Stopped NetworkTrafficServerConnector@3a496a96{HTTP/1.1}{0.0.0.0:8999}
[io-compute-8] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@4df06e91{/,null,UNAVAILABLE}
[io-compute-8] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@482d7095{/__admin,null,UNAVAILABLE}
[io-compute-7] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Service bound to address /127.0.0.1:7997
[io-compute-2] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Service bound to address /127.0.0.1:7998
[io-compute-2] INFO org.http4s.blaze.server.BlazeServerBuilder -
_ _ _ _ _
| |_| |_| |_ _ __| | | ___binance.SpotClientIntegrationTest 3s
| ' \ _| _| '_ \_ _(_-<binance.FapiClientIntegrationTest 3s
|_||_\__|\__| .__/ |_|/__/
|_|
[io-compute-7] INFO org.http4s.blaze.server.BlazeServerBuilder -
_ _ _ _ _
| |_| |_| |_ _ __| | | ___
| ' \ _| _| '_ \_ _(_-<
|_||_\__|\__| .__/ |_|/__/
|_|
[io-compute-2] INFO org.http4s.blaze.server.BlazeServerBuilder - http4s v1.0.0-M30 on blaze v0.15.2 started at http://127.0.0.1:7998/
[io-compute-7] INFO org.http4s.blaze.server.BlazeServerBuilder - http4s v1.0.0-M30 on blaze v0.15.2 started at http://127.0.0.1:7997/
[info] HttpClientTest:
[info] - a bad request response should be translated into a HttpError
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-5] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-2-0
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-8] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-3-0
[blaze-selector-0] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50555
[blaze-selector-0] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50557
[io-compute-10] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "aggTrade",
"E": 1623095242152,
"a": 102141499,
"s": "BTCUSDT",
"p": "39792.73",
"q": "10.543",
"f": 183139249,
"l": 183139250,
"T": 1623095241998,
"m": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(k)))
[io-compute-11] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "trade",
"E": 123456789,
"s": "BNBBTC",
"t": 12345,
"p": "0.001",
"q": "100",
"b": 88,
"a": 50,
"T": 123456785,
"m": true,
"M": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(k)))
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-1] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-5-0
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-10] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-4-0
[blaze-selector-1] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50560
[blaze-selector-1] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50561
[io-compute-12] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "trade",
"E": 123456789,
"s": "BNBBTC",
"t": 12345,
"p": "0.001",
"q": "100",
"b": 88,
"a": 50,
"T": 123456785,
"m": true,
"M": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(U)))
io.netty.channel.StacklessClosedChannelException
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source)
at delay @ sttp.client3.impl.cats.CatsMonadAsyncError.$anonfun$async$1(CatsMonadAsyncError.scala:10)
at map @ sttp.client3.impl.cats.CatsMonadAsyncError.$anonfun$async$1(CatsMonadAsyncError.scala:10)
at async @ sttp.client3.impl.cats.CatsMonadAsyncError.async(CatsMonadAsyncError.scala:10)
at delay @ sttp.client3.impl.cats.CatsMonadError.eval(CatsMonadError.scala:19)
at run @ org.scalatest.concurrent.SerialExecutionContext.recRunNow(SerialExecutionContext.scala:120)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at run @ org.scalatest.concurrent.SerialExecutionContext.recRunNow(SerialExecutionContext.scala:120)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:162)
[io-compute-8] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "aggTrade",
"E": 1623095242152,
"a": 102141499,
"s": "BTCUSDT",
"p": "39792.73",
"q": "10.543",
"f": 183139249,
"l": 183139250,
"T": 1623095241998,
"m": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(ps)))
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-6] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-6-0
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-7-0
[blaze-selector-2] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50564
[blaze-selector-2] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50565
[io-compute-6] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "trade",
"E": 123456789,
"s": "BNBBTC",
"t": 12345,
"p": "0.001",
"q": "100",
"b": 88,
"a": 50,
"T": 123456785,
"m": true,
"M": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(u)))
[AsyncHttpClient-57-2] WARN org.asynchttpclient.netty.handler.WebSocketHandler - onError
java.net.SocketException: Connection reset
at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:394)
at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:426)
at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:253)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:350)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)
[io-compute-5] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "aggTrade",
"E": 1623095242152,
"a": 102141499,
"s": "BTCUSDT",
"p": "39792.73",
"q": "10.543",
"f": 183139249,
"l": 183139250,
"T": 1623095241998,
"m": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(i)))
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-7] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-8-0
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-4] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-9-0
[blaze-selector-3] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50569
[blaze-selector-3] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50568
[io-compute-4] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "aggTrade",
"E": 1623095242152,
"a": 102141499,
"s": "BTCUSDT",
"p": "39792.73",
"q": "10.543",
"f": 183139249,
"l": 183139250,
"T": 1623095241998,
"m": true
}
DecodingFailure(C[A], List())
[io-compute-7] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "trade",
"E": 123456789,
"s": "BNBBTC",
"t": 12345,
"p": "0.001",
"q": "100",
"b": 88,
"a": 50,
"T": 123456785,
"m": true,
"M": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(lastUpdateId)))
[io-compute-3] INFO org.eclipse.jetty.server.NetworkTrafficServerConnector - Stopped NetworkTrafficServerConnector@3907c7d5{HTTP/1.1}{0.0.0.0:8997}
[io-compute-3] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@62c0475a{/,null,UNAVAILABLE}
[io-compute-3] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@402e8a1a{/__admin,null,UNAVAILABLE}
[info] FapiClientIntegrationTest:
[info] - it should fire multiple requests when expected number of elements returned is above threshold
[info] - it should be able to stream klines even with a threshold of 1
[info] - it should return a list of prices
[info] - it should return a single price
[info] - it should return the balance
[info] - it should be able to change the position mode
[info] - it should be able to change the initial leverage
[info] - it should create an order
[info] - it should get an order details
[info] - it should cancel an order
[info] - it should cancel all orders
[info] - it should stream KLines *** FAILED ***
[info] List() did not contain only (KLineStream(kline,123456789,BTCUSDT,KLineStreamPayload(123400000,123460000,BTCUSDT,1m,100,200,0.001,0.002,0.0025,0.0015,1000,100,false,1.0,500,0.5))) (FapiClientIntegrationTest.scala:1078)
[info] - it should stream continuous Contract KLines *** FAILED ***
[info] List() did not contain only (ContractKLineStream(continuous_kline,1607443058651,BTCUSDT,PERPETUAL,ContractKLineStreamPayload(1607443020000,1607443079999,1m,116467658886,116468012423,18787.0,18804.04,18804.04,18786.54,197.664,543,false,3715253.19494,184.769,3472925.84746))) (FapiClientIntegrationTest.scala:1148)
[info] - it should stream Mark Price updates for a given symbol *** FAILED ***
[info] List() did not contain only (MarkPriceUpdate(markPriceUpdate,1562305380000,BTCUSDT,11794.15,11784.62659091,11784.25641265,0.00038167,1562306400000)) (FapiClientIntegrationTest.scala:1204)
[info] - it should stream Mark Price for all symbols *** FAILED ***
[info] List() did not contain only (MarkPriceUpdate(markPriceUpdate,1562305380000,BTCUSDT,11185.87786614,11784.62659091,11784.25641265,0.00030,1562306400000)) (FapiClientIntegrationTest.scala:1247)
[info] io.github.paoloboni.binance.FapiClientIntegrationTest *** ABORTED ***
[info] java.util.concurrent.TimeoutException: 10 seconds
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] ...
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-0
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-1
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-2
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-3
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-4
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-5
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-6
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-7
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-selector-8
[io-compute-3] INFO org.http4s.blaze.channel.nio1.SelectorLoop - Shutting down SelectorLoop blaze-acceptor-10-0
[blaze-selector-4] INFO org.http4s.blaze.channel.nio1.NIO1SocketServerGroup - Accepted connection from /127.0.0.1:50571
[io-compute-3] ERROR io.github.paoloboni.Env - Failed to decode frame: {
"e": "trade",
"E": 123456789,
"s": "BNBBTC",
"t": 12345,
"p": "0.001",
"q": "100",
"b": 88,
"a": 50,
"T": 123456785,
"m": true,
"M": true
}
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(f)))
[info] SpotClientIntegrationTest:
[info] - it should fire multiple requests when expected number of elements returned is above threshold
[io-compute-7] INFO org.eclipse.jetty.server.NetworkTrafficServerConnector - Stopped NetworkTrafficServerConnector@61020e80{HTTP/1.1}{0.0.0.0:8998} io.github.paoloboni.binance.SpotClientIntegrationTest 13s
[info] - it should be able to stream klines even with a threshold of 1
[io-compute-7] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@4b5dcc67{/,null,UNAVAILABLE}
[info] - it should return the orderbook depth
[io-compute-7] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@663e949{/__admin,null,UNAVAILABLE} | => io.github.paoloboni.binance.SpotClientIntegrationTest 13s
[info] - it should return a list of prices
[info] - it should return the balance
[info] - it should create an order
[info] - it should query an order
[info] - it should cancel an order
[info] - it should cancel all orders
[info] - it should stream KLines *** FAILED ***
[info] List() did not contain only (KLineStream(kline,123456789,BTCUSDT,KLineStreamPayload(123400000,123460000,BTCUSDT,1m,100,200,0.001,0.002,0.0025,0.0015,1000,100,false,1.0,500,0.5))) (SpotClientIntegrationTest.scala:967)
[info] - it should stream Diff. Depth *** FAILED ***
[info] List() did not contain only (DiffDepthStream(depthUpdate,123456789,BNBBTC,157,160,List(Bid(0.0024,10)),List(Ask(0.0026,100)))) (SpotClientIntegrationTest.scala:1031)
[info] - it should stream Book Tickers *** FAILED ***
[info] List() did not contain only (BookTicker(400900217,BNBUSDT,25.3519,31.21,25.3652,40.66)) (SpotClientIntegrationTest.scala:1070)
[info] - it should stream Partial Book Depth streams *** FAILED ***
[info] List() did not contain only (PartialDepthStream(160,List(Bid(0.0024,10)),List(Ask(0.0026,100)))) (SpotClientIntegrationTest.scala:1115)
[info] - it should stream aggregate trade information *** FAILED ***
[info] List() did not contain only (AggregateTradeStream(aggTrade,1623095242152,BTCUSDT,102141499,39792.73,10.543,183139249,183139250,1623095241998,true)) (SpotClientIntegrationTest.scala:1154)
[info] io.github.paoloboni.binance.SpotClientIntegrationTest *** ABORTED ***
[info] java.util.concurrent.TimeoutException: 10 seconds
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] at beforeAll$ @ io.github.paoloboni.binance.IntegrationTest.beforeAll(IntegrationTest.scala:40)
[info] ...
[info] Run completed in 13 seconds, 829 milliseconds.
[info] Total number of tests run: 41
[info] Suites: completed 7, aborted 2
[info] Tests: succeeded 32, failed 9, canceled 0, ignored 0, pending 0
[info] *** 2 SUITES ABORTED ***
[info] *** 9 TESTS FAILED ***
[error] Error during tests:
[error] io.github.paoloboni.binance.SpotClientIntegrationTest
[error] io.github.paoloboni.binance.FapiClientIntegrationTest
[error] (Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 68 s (01:08), completed 13 Jan 2022, 8:22:39 am
~/workspace/binance-scala-client (master)$> git log
commit e6ea23aa7db201783302355be8db3ecace44907d (HEAD -> master, origin/master, origin/HEAD)
Author: Paolo Boni <boni.paolo@gmail.com>
Date: Wed Jan 12 20:23:54 2022 +0100
Attempt to resolve race condition in integration tests (#204)
* Refactor integration tests
* Indentation
* Fix scala 3 compilation
* Increase timeout
* Change execution context for IT tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment