Skip to content

Commit 90f884f

Browse files
author
Steve Salas
committed
Update Agent unit tests
1 parent ececca7 commit 90f884f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/src/test/scala/com/secdec/bytefrog/agent/init/test/ControlConnectionHandshakeV1Suite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ControlConnectionHandshakeV1Suite extends FunSuite with Matchers with Cont
9292
messageProtocol.writeConfiguration(out, configBytes)
9393
out.flush
9494
} { (in, out) =>
95-
val result = handshake.performHandshake(connectionOf(in, out))
95+
val result = handshake.performHandshake(connectionOf(in, out), 0)
9696

9797
// result should not be null and should match staged configuration
9898
result should not be (null)
@@ -117,7 +117,7 @@ class ControlConnectionHandshakeV1Suite extends FunSuite with Matchers with Cont
117117
// and writes an error
118118
messageProtocol.writeError(out, errorMessage)
119119
} { (in, out) =>
120-
val result = handshake.performHandshake(connectionOf(in, out))
120+
val result = handshake.performHandshake(connectionOf(in, out), 0)
121121

122122
result should be(null)
123123
}
@@ -133,7 +133,7 @@ class ControlConnectionHandshakeV1Suite extends FunSuite with Matchers with Cont
133133
messageProtocol.writeDataHelloReply(out)
134134
} { (in, out) =>
135135
// agent should figure this out
136-
val result = handshake.performHandshake(connectionOf(in, out))
136+
val result = handshake.performHandshake(connectionOf(in, out), 0)
137137

138138
result should be(null)
139139
}

0 commit comments

Comments
 (0)