Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
compscidr committed Aug 13, 2024
1 parent d6b4490 commit 47c4123
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ class TestTextFilePacketDumper {
fun testRealFileDump() {
// this file has shorter addresses than we normally output, make sure it can be handled
val filename = "/test_dumps/ipv4_tcp_header_goodchecksum.dump"
val resource = javaClass.getResource(filename)
?: throw FileNotFoundException("Could not find test dump: $filename")
val resource =
javaClass.getResource(filename)
?: throw FileNotFoundException("Could not find test dump: $filename")
val readBuffer = TextFilePacketDumper.parseFile(resource.file, true)
assertEquals(40, readBuffer.limit())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class TestPcapNgTcpServerPacketDumper {
companion object {
private val logger = LoggerFactory.getLogger(this::class.java)

fun waitForData(tcpClientSocket: Socket, expectedBytes: Int): ByteBuffer {
fun waitForData(
tcpClientSocket: Socket,
expectedBytes: Int,
): ByteBuffer {
logger.debug("Waiting to receive $expectedBytes bytes from the tcp dumper")
var available = 0
do {
Expand Down

0 comments on commit 47c4123

Please sign in to comment.