Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
gwatts committed Dec 5, 2018
1 parent a7d54e5 commit 7c6a75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pinfinder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 7c6a75a

Please sign in to comment.