You've already forked go-semantic-release
style(internal/*): fix lint issues
This commit is contained in:
3
internal/cache/cache_test.go
vendored
3
internal/cache/cache_test.go
vendored
@@ -25,7 +25,8 @@ func TestReadCacheInvalidContent(t *testing.T) {
|
||||
|
||||
completePath := path.Join(path.Dir(dir), ".version")
|
||||
brokenContent := []byte("hello broken\ngo: lang\n")
|
||||
ioutil.WriteFile(completePath, brokenContent, 0644)
|
||||
err = ioutil.WriteFile(completePath, brokenContent, 0644)
|
||||
assert.NoError(t, err)
|
||||
|
||||
_, readError := cache.Read(dir)
|
||||
assert.Errorf(t, readError, "Should give error, when broken content")
|
||||
|
||||
Reference in New Issue
Block a user