From b3a98126f705ce094c46f501f1d3d8ae52f281ab Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Wed, 7 Jun 2017 11:25:01 -0700 Subject: [PATCH] Fix unit tests broken in merge Rename clashed with new test. --- Tests/NIOTests/ByteBufferTest.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Tests/NIOTests/ByteBufferTest.swift b/Tests/NIOTests/ByteBufferTest.swift index 4a098ca0d..a7b924c5e 100644 --- a/Tests/NIOTests/ByteBufferTest.swift +++ b/Tests/NIOTests/ByteBufferTest.swift @@ -27,14 +27,15 @@ class ByteBufferTest: XCTestCase { func testEqualsComparesReadBuffersOnly() throws { // Only cares about the read buffer - buf.writeInteger(value: Int8.max) - buf.writeString(value: "oh hi") - let _: Int8 = buf.readInteger()! // Just getting rid of it from the read buffer + buf.write(integer: Int8.max) + buf.write(string: "oh hi") + let _: Int8 = buf.read()! // Just getting rid of it from the read buffer var otherBuffer = try! allocator.buffer(capacity: 32) - otherBuffer.writeString(value: "oh hi") + otherBuffer.write(string: "oh hi") XCTAssertEqual(otherBuffer, buf) } + func testWrappedData() { let data = "Test".data(using: .utf8)! let buffer = allocator.buffer(wrapped: data)