debug tests on CI
This commit is contained in:
parent
5e9668c2e4
commit
5b1c615740
|
@ -14,7 +14,10 @@ type f struct {
|
||||||
|
|
||||||
func Test_fileExists(t *testing.T) {
|
func Test_fileExists(t *testing.T) {
|
||||||
|
|
||||||
_, _ = os.Create(getPlatformStoragePath("exists"))
|
_, err := os.Create(getPlatformStoragePath("exists"))
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
defer os.Remove(getPlatformStoragePath("exists"))
|
defer os.Remove(getPlatformStoragePath("exists"))
|
||||||
|
|
||||||
type args struct {
|
type args struct {
|
||||||
|
@ -56,7 +59,10 @@ func Test_readStorageFile(t *testing.T) {
|
||||||
file, _ := yaml.Marshal(f{a: 1})
|
file, _ := yaml.Marshal(f{a: 1})
|
||||||
name := "test"
|
name := "test"
|
||||||
|
|
||||||
_ = ioutil.WriteFile(getPlatformStoragePath(name), file, os.ModePerm)
|
err := ioutil.WriteFile(getPlatformStoragePath(name), file, os.ModePerm)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
read := readStorageFile(getPlatformStoragePath(name))
|
read := readStorageFile(getPlatformStoragePath(name))
|
||||||
|
|
||||||
if !bytes.Equal(file, read) {
|
if !bytes.Equal(file, read) {
|
||||||
|
|
Loading…
Reference in New Issue