Fix a typo in blorg test
This commit is contained in:
parent
19409dd62d
commit
2a85f587d3
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ func TestBlorg(t *testing.T) {
|
|||
t.Errorf("Could not read config: %s", err)
|
||||
return
|
||||
}
|
||||
commitedHashBs, err := ioutil.ReadFile("testdata/public.md5")
|
||||
committedHashBs, err := ioutil.ReadFile("testdata/public.md5")
|
||||
if err != nil {
|
||||
t.Errorf("Could not read hash bytes: %s", err)
|
||||
return
|
||||
|
@ -28,7 +28,7 @@ func TestBlorg(t *testing.T) {
|
|||
t.Errorf("Could not hash PublicDir: %s", err)
|
||||
return
|
||||
}
|
||||
rendered, committed := strings.TrimSpace(string(renderedHashBs)), strings.TrimSpace(string(commitedHashBs))
|
||||
rendered, committed := strings.TrimSpace(string(renderedHashBs)), strings.TrimSpace(string(committedHashBs))
|
||||
if rendered != committed {
|
||||
t.Errorf("PublicDir hashes do not match: '%s' -> '%s'", committed, rendered)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue