mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-01 05:28:30 +00:00
*: fix comparison of missing keywords
Adding another test validated from the FreeBSD workflow. Just because the keywords requested to be validated are not present in the manifest, it is not an error. Also, if the keywords from a new manifest are not present in a prior manifest, then only compare the common keywords. Fixes https://github.com/vbatts/go-mtree/issues/86 Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
4eec68be4b
commit
21723a3974
4 changed files with 36 additions and 17 deletions
|
@ -69,7 +69,7 @@ func TestCheckKeywords(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
if len(res) != 1 {
|
||||
t.Errorf("expected to get 1 delta on changed mtimes, but did not")
|
||||
t.Fatal("expected to get 1 delta on changed mtimes, but did not")
|
||||
}
|
||||
if res[0].Type() != Modified {
|
||||
t.Errorf("expected to get modified delta on changed mtimes, but did not")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue