Skip to content

Commit

Permalink
test suite opens readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Jan 24, 2025
1 parent 52b396b commit 1b6320f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmtiles/edit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
var logger = log.New(os.Stdout, "", log.Ldate|log.Ltime|log.Lshortfile)

func makeFixtureCopy(t *testing.T, name string) string {
src, _ := os.Open("fixtures/test_fixture_1.pmtiles")
src, _ := os.OpenFile("fixtures/test_fixture_1.pmtiles", os.O_RDONLY, 0666)
defer src.Close()
fname := filepath.Join(t.TempDir(), name+".pmtiles")
dest, _ := os.Create(fname)
Expand Down

0 comments on commit 1b6320f

Please sign in to comment.