Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Krasi Georgiev <[email protected]>
  • Loading branch information
obitech and krasi-georgiev authored Aug 9, 2019
1 parent 6c5bd84 commit 8a53e2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/tsdb/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
testutildb "github.com/prometheus/tsdb/testutil/db"
)

func createTestRODBWithBlock(t *testing.T) (*tsdb.DBReadOnly, func()) {
func createRoDb(t *testing.T) (*tsdb.DBReadOnly, func()) {
tmpdir, err := ioutil.TempDir("", "test")
if err != nil {
os.RemoveAll(tmpdir)
Expand Down Expand Up @@ -56,7 +56,7 @@ func createTestRODBWithBlock(t *testing.T) (*tsdb.DBReadOnly, func()) {
}
}

func TestCLIPrintBlocks(t *testing.T) {
func TestPrintBlocks(t *testing.T) {
db, closeFn := createTestRODBWithBlock(t)
defer closeFn()

Expand All @@ -65,7 +65,7 @@ func TestCLIPrintBlocks(t *testing.T) {
tw := tabwriter.NewWriter(&b, 0, 0, 2, ' ', 0)
defer tw.Flush()

// Set table header
// Set table header.
_, err := fmt.Fprintln(&b, printBlocksTableHeader)
if err != nil {
t.Error(err)
Expand Down

0 comments on commit 8a53e2d

Please sign in to comment.