Skip to content

Commit

Permalink
Fix backup test to reflect after override
Browse files Browse the repository at this point in the history
  • Loading branch information
pshima committed Jul 14, 2016
1 parent e456ee9 commit 4964db0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backup/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ func TestWriteMetaLocal(t *testing.T) {
t.Errorf("Unable to marshall source testing data: %v", err)
}

reflecttest := reflect.DeepEqual(metaTest, meta)

// since the timestamp is created inside writeMetaLocal, overwrite it here to be the
// same as our test struct
meta.EndTime = testint64
meta.NodeName = hostname

reflecttest := reflect.DeepEqual(metaTest, meta)

if reflecttest != true {
t.Errorf("JSON marshall did not equal. Got %v, expected %v", metaTest, meta)
t.Errorf("JSON marshall did not equal.\nsource: %v\n expect: %v\n", metaTest, meta)
}

}
Expand Down

0 comments on commit 4964db0

Please sign in to comment.