mirror of https://bitbucket.org/ausocean/av.git
fix an error and ran go fmt
This commit is contained in:
parent
7da19e1f89
commit
7387792f73
|
@ -38,7 +38,7 @@ const (
|
||||||
testElementSize = 1
|
testElementSize = 1
|
||||||
testOverFlowSize = 5
|
testOverFlowSize = 5
|
||||||
testDataSize = 1
|
testDataSize = 1
|
||||||
testConcurrencyBufferSize = 1000;
|
testConcurrencyBufferSize = 1000
|
||||||
)
|
)
|
||||||
|
|
||||||
var rb *ringBuffer
|
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
|
// Test writing to size, then read some, then 'write' to test that we go back
|
||||||
// to start of buffer
|
// to start of buffer
|
||||||
func TestWritingAndReading6(t *testing.T) {
|
func TestWritingAndReading6(t *testing.T) {
|
||||||
rb = NewRingBuffer(testOverFlowSize, 10)
|
rb = NewRingBuffer(testOverFlowSize, testElementSize)
|
||||||
var err1 error
|
var err1 error
|
||||||
var err2 error
|
var err2 error
|
||||||
for i := 0; i < testOverFlowSize; i++ {
|
for i := 0; i < testOverFlowSize; i++ {
|
||||||
|
|
Loading…
Reference in New Issue