Skip to content

Commit

Permalink
fixes go tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jan 2, 2021
1 parent 71c123a commit a17e3f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ var _ = Describe("storage package", func() {
st2 := testing.ParseTime("0001-01-01-00:00:00")
et2 := testing.ParseTime("0001-01-01-00:00:30")
key, _ := ParseKey("foo")
err := s.Put(st, et, key, tree)
err := s.Put(st, et, key, tree, "testspy", 100)
Expect(err).ToNot(HaveOccurred())

t2, _, err := s.Get(st2, et2, key)
t2, _, _, _, err := s.Get(st2, et2, key)
Expect(err).ToNot(HaveOccurred())
Expect(t2).ToNot(BeNil())

Expand All @@ -61,7 +61,7 @@ var _ = Describe("storage package", func() {

s2, err = New(cfg)

t3, _, err := s2.Get(st2, et2, key)
t3, _, _, _, err := s2.Get(st2, et2, key)
Expect(err).ToNot(HaveOccurred())
Expect(t3).ToNot(BeNil())

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (t *Tree) String() string {
res := ""
t.iterate(func(k []byte, v uint64) {
if v > 0 {
res += fmt.Sprintf("%q %d\n", k, v)
res += fmt.Sprintf("%q %d\n", k[2:], v)
}
})

Expand Down

0 comments on commit a17e3f2

Please sign in to comment.