From 7387792f7357ff2593af1901b1c5d7d6b73fefd1 Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Sun, 3 Dec 2017 20:07:45 +1030 Subject: [PATCH] fix an error and ran go fmt --- ringbuffer/RingBuffer_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ringbuffer/RingBuffer_test.go b/ringbuffer/RingBuffer_test.go index 97dd0526..93fa7c5a 100644 --- a/ringbuffer/RingBuffer_test.go +++ b/ringbuffer/RingBuffer_test.go @@ -34,11 +34,11 @@ import ( ) const ( - testBufferSize = 10 - testElementSize = 1 - testOverFlowSize = 5 - testDataSize = 1 - testConcurrencyBufferSize = 1000; + testBufferSize = 10 + testElementSize = 1 + testOverFlowSize = 5 + testDataSize = 1 + testConcurrencyBufferSize = 1000 ) var rb *ringBuffer @@ -222,7 +222,7 @@ func TestWritingAndReading5(t *testing.T) { // Test writing to size, then read some, then 'write' to test that we go back // to start of buffer func TestWritingAndReading6(t *testing.T) { - rb = NewRingBuffer(testOverFlowSize, 10) + rb = NewRingBuffer(testOverFlowSize, testElementSize) var err1 error var err2 error for i := 0; i < testOverFlowSize; i++ {