Fix byte literal in IpPacketTest (222 does not fit in a Byte)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -8,8 +8,8 @@ import org.junit.Test
|
|||||||
/** IPv4/UDP parsing and building for the DNS forwarder (FR-18). Pure tests. */
|
/** IPv4/UDP parsing and building for the DNS forwarder (FR-18). Pure tests. */
|
||||||
class IpPacketTest {
|
class IpPacketTest {
|
||||||
|
|
||||||
private val clientIp = byteArrayOf(10, 111, 222, 1)
|
private val clientIp = byteArrayOf(10, 111, 222.toByte(), 1)
|
||||||
private val dnsIp = byteArrayOf(10, 111, 222, 2)
|
private val dnsIp = byteArrayOf(10, 111, 222.toByte(), 2)
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `builds a packet that parses back`() {
|
fun `builds a packet that parses back`() {
|
||||||
|
|||||||
Reference in New Issue
Block a user