Fix a typo in blorg test

This commit is contained in:
Elliott Sales de Andrade 2022-02-27 15:44:18 -05:00
parent 19409dd62d
commit 2a85f587d3

View file

@ -14,7 +14,7 @@ func TestBlorg(t *testing.T) {
t.Errorf("Could not read config: %s", err) t.Errorf("Could not read config: %s", err)
return return
} }
commitedHashBs, err := ioutil.ReadFile("testdata/public.md5") committedHashBs, err := ioutil.ReadFile("testdata/public.md5")
if err != nil { if err != nil {
t.Errorf("Could not read hash bytes: %s", err) t.Errorf("Could not read hash bytes: %s", err)
return return
@ -28,7 +28,7 @@ func TestBlorg(t *testing.T) {
t.Errorf("Could not hash PublicDir: %s", err) t.Errorf("Could not hash PublicDir: %s", err)
return return
} }
rendered, committed := strings.TrimSpace(string(renderedHashBs)), strings.TrimSpace(string(commitedHashBs)) rendered, committed := strings.TrimSpace(string(renderedHashBs)), strings.TrimSpace(string(committedHashBs))
if rendered != committed { if rendered != committed {
t.Errorf("PublicDir hashes do not match: '%s' -> '%s'", committed, rendered) t.Errorf("PublicDir hashes do not match: '%s' -> '%s'", committed, rendered)
return return