The test creates a file "foo1" in version 10 with contents "foo1", and
a file "foo" with contents "foo".

In version 20, the file "foo" is removed.

In version 30, the file "foo" is created with contents "foo1", and the
file "foo1" is removed.

With rename detection, it correctly identifies that the version 20
foo1 file should be renamed to the version 30 foo file.

Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
This commit is contained in:
Icarus Sparry
2018-02-06 10:25:08 -08:00
committed by Matthew Johnson
parent 4238ab2fec
commit 3a1de36cd5
+1 -1
View File
@@ -364,7 +364,7 @@ func TestCreateManifestResurrect(t *testing.T) {
mustGenFile(t, testDir, "30", "test-bundle", "foo", "foo1")
mustCreateManifestsStandard(t, 30, testDir)
checkManifestContains(t, testDir, "30", "test-bundle", AllZeroHash+"\t30\t/foo1\n")
checkManifestNotContains(t, testDir, "30", "test-bundle", AllZeroHash+"\t30\t/foo1\n")
checkManifestContains(t, testDir, "30", "test-bundle", "\t30\t/foo\n")
}