mirror of https://github.com/stretchr/testify.git
Remove debug print, go fmt my lines
parent
814eb1589b
commit
ec1a3f179c
|
@ -1,12 +1,12 @@
|
||||||
package suite
|
package suite
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"os"
|
|
||||||
"io/ioutil"
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This suite is intended to store values to make sure that only
|
// This suite is intended to store values to make sure that only
|
||||||
|
@ -120,11 +120,10 @@ func (s *SuiteLoggingTester) TestLoggingFail() {
|
||||||
|
|
||||||
type StdoutCapture struct {
|
type StdoutCapture struct {
|
||||||
oldStdout *os.File
|
oldStdout *os.File
|
||||||
readPipe *os.File
|
readPipe *os.File
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sc *StdoutCapture) StartCapture() {
|
func (sc *StdoutCapture) StartCapture() {
|
||||||
fmt.Println("Starting capture1!")
|
|
||||||
sc.oldStdout = os.Stdout
|
sc.oldStdout = os.Stdout
|
||||||
sc.readPipe, os.Stdout, _ = os.Pipe()
|
sc.readPipe, os.Stdout, _ = os.Pipe()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue