Skip to content

Commit

Permalink
fix: default the ContentDir to 'test_data'
Browse files Browse the repository at this point in the history
Signed-off-by: James Strachan <[email protected]>
  • Loading branch information
jstrachan committed Jul 23, 2020
1 parent 9034f7f commit f73059e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions scm/driver/fake/content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import (
)

func TestContent(t *testing.T) {
client, data := NewDefault()
data.ContentDir = "test_data"
client, _ := NewDefault()

ctx := context.Background()
sha := "master"
Expand Down
1 change: 1 addition & 0 deletions scm/driver/fake/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func NewDefault() (*scm.Client, *Data) {
data := NewData()
data.CurrentUser.Login = "dummy"
data.CurrentUser.Name = "dummy"
data.ContentDir = "test_data"

client := &wrapper{new(scm.Client)}
client.BaseURL = &url.URL{
Expand Down

0 comments on commit f73059e

Please sign in to comment.