Skip to content

Commit

Permalink
working directory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 15, 2024
1 parent c8224a7 commit dabc7db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pmtiles/extract_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package pmtiles

import (
"fmt"
"github.com/RoaringBitmap/roaring/roaring64"
"github.com/stretchr/testify/assert"
"testing"
Expand Down Expand Up @@ -164,5 +163,4 @@ func TestMergeRangesMultiple(t *testing.T) {
assert.Equal(t, 1, result.Len())
assert.Equal(t, srcDstRange{0, 0, 90}, front.Rng)
assert.Equal(t, 3, len(front.CopyDiscards))
fmt.Println(result)
}
9 changes: 7 additions & 2 deletions pmtiles/show_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package pmtiles

import (
"fmt"
"path"
"bytes"
"encoding/json"
"github.com/stretchr/testify/assert"
Expand All @@ -12,7 +14,9 @@ import (
func TestShowHeader(t *testing.T) {
var b bytes.Buffer
logger := log.New(os.Stdout, "", log.Ldate|log.Ltime|log.Lshortfile)
err := Show(logger, &b, "", "fixtures/test_fixture_1.pmtiles", true, false, false, "", false, 0, 0, 0)
wd, _ := os.Getwd()
fmt.Println(wd)
err := Show(logger, &b, "", path.Join(wd, "fixtures/test_fixture_1.pmtiles"), true, false, false, "", false, 0, 0, 0)
assert.Nil(t, err)

var input map[string]interface{}
Expand All @@ -24,7 +28,8 @@ func TestShowHeader(t *testing.T) {
func TestShowMetadata(t *testing.T) {
var b bytes.Buffer
logger := log.New(os.Stdout, "", log.Ldate|log.Ltime|log.Lshortfile)
err := Show(logger, &b, "", "fixtures/test_fixture_1.pmtiles", false, true, false, "", false, 0, 0, 0)
wd, _ := os.Getwd()
err := Show(logger, &b, "", path.Join(wd,"fixtures/test_fixture_1.pmtiles"), false, true, false, "", false, 0, 0, 0)
assert.Nil(t, err)

var input map[string]interface{}
Expand Down

0 comments on commit dabc7db

Please sign in to comment.