Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Jan 26, 2024
1 parent 042ceb1 commit b30e35f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compactindexsized/build48_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func TestBuilder48(t *testing.T) {
expected := concatBytes(
// --- File header
// magic
[]byte{0x72, 0x64, 0x63, 0x65, 0x63, 0x69, 0x64, 0x78},
[]byte{'c', 'o', 'm', 'p', 'i', 's', 'z', 'd'},
// header size
i32tob(31),
// value size (36 bytes in this case)
Expand Down
2 changes: 1 addition & 1 deletion compactindexsized/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestOpen_InvalidMagic(t *testing.T) {
func TestOpen_HeaderOnly(t *testing.T) {
buf := concatBytes(
// Magic
[]byte{'r', 'd', 'c', 'e', 'c', 'i', 'd', 'x'},
[]byte{'c', 'o', 'm', 'p', 'i', 's', 'z', 'd'},
// header size
i32tob(30),
// FileSize
Expand Down
3 changes: 2 additions & 1 deletion deprecated/bucketteer/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/dustin/go-humanize"
"github.com/rpcpool/yellowstone-faithful/bucketteer"
"github.com/rpcpool/yellowstone-faithful/indexmeta"
"golang.org/x/exp/mmap"
)

Expand Down Expand Up @@ -60,7 +61,7 @@ func main() {

fmt.Println("writing to file...")
writeStartedAt := time.Now()
_, err = buWr.Seal(nil)
_, err = buWr.Seal(indexmeta.Meta{})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit b30e35f

Please sign in to comment.