Skip to content

Commit 9415a07

Browse files
committed
Fix tests in docker. Fix linter issues
1 parent a13e3fa commit 9415a07

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM ubuntu:latest
22

3-
RUN apt-get update && apt-get install -y openjdk-8-jdk python3 python3-pip
3+
RUN apt-get update && apt-get install -y openjdk-8-jdk python3 python3-pip python3-venv
4+
RUN python3 -m venv /opt/venv
5+
ENV PATH="/opt/venv/bin:$PATH"
46
RUN python3 -m pip install pproxy
57

68
WORKDIR /tests

src/main/kotlin/com/theevilroot/asyncsocket/CoroutineSocket.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ open class CoroutineSocket(
3535
readTimeout.first,
3636
readTimeout.second,
3737
it,
38-
ContinuationHandler<Int>(),
38+
ContinuationHandler<Int>()
3939
)
4040
} else {
4141
socket.read(buffer, it, ContinuationHandler<Int>())

src/main/kotlin/com/theevilroot/asyncsocket/Socks4CoroutineSocket.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Socks4CoroutineSocket(
1010
val socksIsa: InetSocketAddress,
1111
channel: AsynchronousSocketChannel,
1212
val userId: String,
13-
readTimeout: Pair<Long, TimeUnit>? = null,
13+
readTimeout: Pair<Long, TimeUnit>? = null
1414
) : CoroutineSocket(channel, readTimeout) {
1515

1616
lateinit var remoteIsa: InetSocketAddress

src/main/kotlin/com/theevilroot/asyncsocket/SocksCoroutineSocket.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SocksCoroutineSocket(
1111
val socksIsa: InetSocketAddress,
1212
channel: AsynchronousSocketChannel,
1313
val credentials: Pair<String, String>? = null,
14-
readTimeout: Pair<Long, TimeUnit>? = null,
14+
readTimeout: Pair<Long, TimeUnit>? = null
1515
) : CoroutineSocket(channel, readTimeout) {
1616

1717
enum class Method { NO_AUTH, USER_PASS }

0 commit comments

Comments
 (0)