From 5b1c6157407388297fc23d25fe513d293f6b84d2 Mon Sep 17 00:00:00 2001 From: sqshq Date: Sat, 3 Aug 2019 17:03:46 -0400 Subject: [PATCH] debug tests on CI --- metadata/storage_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/metadata/storage_test.go b/metadata/storage_test.go index b1cdeab..82e7985 100644 --- a/metadata/storage_test.go +++ b/metadata/storage_test.go @@ -14,7 +14,10 @@ type f struct { 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")) type args struct { @@ -56,7 +59,10 @@ func Test_readStorageFile(t *testing.T) { file, _ := yaml.Marshal(f{a: 1}) 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)) if !bytes.Equal(file, read) {