mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Merge pull request #96 from fkautz/pr_out_removing_printlns_from_test_code
This commit is contained in:
commit
76f21c1cfc
@ -19,7 +19,6 @@ package split
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"log"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -39,7 +38,6 @@ func (s *MySuite) TestSplitStream(c *C) {
|
|||||||
bytesWriter.Write([]byte(strconv.Itoa(i)))
|
bytesWriter.Write([]byte(strconv.Itoa(i)))
|
||||||
}
|
}
|
||||||
bytesWriter.Flush()
|
bytesWriter.Flush()
|
||||||
log.Println(strconv.Itoa(bytesBuffer.Len()))
|
|
||||||
ch := make(chan SplitMessage)
|
ch := make(chan SplitMessage)
|
||||||
reader := bytes.NewReader(bytesBuffer.Bytes())
|
reader := bytes.NewReader(bytesBuffer.Bytes())
|
||||||
go SplitStream(reader, 25, ch)
|
go SplitStream(reader, 25, ch)
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
package strbyteconv
|
package strbyteconv
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
. "gopkg.in/check.v1"
|
. "gopkg.in/check.v1"
|
||||||
@ -46,7 +45,6 @@ func (s *MySuite) Test(c *C) {
|
|||||||
c.Assert(value, Equals, "100TB")
|
c.Assert(value, Equals, "100TB")
|
||||||
|
|
||||||
bytes, err := StringToBytes("100B")
|
bytes, err := StringToBytes("100B")
|
||||||
log.Println(err)
|
|
||||||
c.Assert(err, IsNil)
|
c.Assert(err, IsNil)
|
||||||
c.Assert(bytes, Equals, uint64(100))
|
c.Assert(bytes, Equals, uint64(100))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user