From 7c6a75a40a69078ba830eb939dc5cb7d11227d09 Mon Sep 17 00:00:00 2001 From: Gareth Watts Date: Tue, 4 Dec 2018 22:56:55 -0800 Subject: [PATCH] update unit test --- pinfinder_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinfinder_test.go b/pinfinder_test.go index 6a92a56..21bd515 100644 --- a/pinfinder_test.go +++ b/pinfinder_test.go @@ -163,7 +163,7 @@ func TestLoadBackup(t *testing.T) { defer os.RemoveAll(tmpDir) path := filepath.Join(tmpDir, "backup1") - backup := loadBackup(path) + backup, _ := loadBackup(path) if backup == nil { t.Fatal("loadBackup failed") } @@ -221,7 +221,7 @@ func TestParseRestriction(t *testing.T) { for _, base := range []string{"backup1", "ios10backup"} { path := filepath.Join(tmpDir, base) - b := loadBackup(path) + b, _ := loadBackup(path) if b == nil { t.Fatal("Failed to load backup") }