Fix byte literal in IpPacketTest (222 does not fit in a Byte)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-10-13 20:25:53 +11:00
parent b534afb96d
commit f5e240f27e

View File

@@ -8,8 +8,8 @@ import org.junit.Test
/** IPv4/UDP parsing and building for the DNS forwarder (FR-18). Pure tests. */
class IpPacketTest {
private val clientIp = byteArrayOf(10, 111, 222, 1)
private val dnsIp = byteArrayOf(10, 111, 222, 2)
private val clientIp = byteArrayOf(10, 111, 222.toByte(), 1)
private val dnsIp = byteArrayOf(10, 111, 222.toByte(), 2)
@Test
fun `builds a packet that parses back`() {