Skip to content

Commit

Permalink
Remove absolute directories in unit tests which create unnecessary cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
jgiannuzzi committed Oct 17, 2023
1 parent 71d716a commit e930ab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/database/db_factory_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package database

import (
"path/filepath"
"testing"
"time"

Expand All @@ -15,7 +16,7 @@ func TestMakeDBProvider(t *testing.T) {
}{
{
name: "WithSqliteURI",
dsn: "sqlite:///tmp/fasttrack.db",
dsn: "sqlite://" + filepath.Join(t.TempDir(), "fasttrackml.db"),
expectedDialector: SQLiteDialectorName,
},
}
Expand Down

0 comments on commit e930ab8

Please sign in to comment.