Skip to content

Commit

Permalink
More cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed May 22, 2024
1 parent ce4cc2a commit deeab84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tables/sofa/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,12 @@ func TestSetCachePaths(t *testing.T) {
assert.NotEmpty(t, client.etagFile)
}

func TestCachePath(t *testing.T) {
client, err := NewSofaClient()
func TestWithCacheDir(t *testing.T) {
cwd, err := os.Getwd()
assert.NoError(t, err)
client, err := NewSofaClient(WithCacheDir(cwd))
assert.NoError(t, err)
defer os.Remove(client.cacheDir) //nolint:errcheck

client.setCachePaths()

Expand Down

0 comments on commit deeab84

Please sign in to comment.