Skip to content

Commit 47c9379

Browse files
committed
testing: remove TestLogDatastore log output during testing
1 parent e35ed83 commit 47c9379

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

basic_ds_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package datastore_test
22

33
import (
4+
"io/ioutil"
5+
"log"
46
"testing"
57

68
dstore "github.com/ipfs/go-datastore"
@@ -19,6 +21,8 @@ func TestNullDatastore(t *testing.T) {
1921
}
2022

2123
func TestLogDatastore(t *testing.T) {
24+
defer log.SetOutput(log.Writer())
25+
log.SetOutput(ioutil.Discard)
2226
ds := dstore.NewLogDatastore(dstore.NewMapDatastore(), "")
2327
dstest.SubtestAll(t, ds)
2428
}

0 commit comments

Comments
 (0)