From 3a1de36cd569a9b98c56fbfbd5a0e9d960ab73eb Mon Sep 17 00:00:00 2001 From: Icarus Sparry Date: Wed, 31 Jan 2018 11:57:20 -0800 Subject: [PATCH] Fix test 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 --- swupd/create_manifests_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swupd/create_manifests_test.go b/swupd/create_manifests_test.go index 5c13b9f..a011462 100644 --- a/swupd/create_manifests_test.go +++ b/swupd/create_manifests_test.go @@ -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") }