From d8f5c2736b40fb7bef8ff20778fd53011091c9b1 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Fri, 2 Sep 2022 01:00:14 +0000 Subject: [PATCH] fix testcases --- swupd/packs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swupd/packs_test.go b/swupd/packs_test.go index 6744d6d9..acd075fa 100644 --- a/swupd/packs_test.go +++ b/swupd/packs_test.go @@ -661,14 +661,14 @@ func TestPackRenames(t *testing.T) { // Pack from 10->30 will contain a delta due to content change (and rename). info = ts.createPack("os-core", 10, 30, ts.path("image")) mustHaveDeltaCount(t, info, 1) - checkFileInPack(t, ts.path("www/30/pack-os-core-from-10.tar"), fmt.Sprintf("delta/10-30-%s-%s", hashIn10, hashIn30)) + checkFileInPack(t, ts.path("www/30/pack-os-core-from-10.tar"), fmt.Sprintf("delta/10-20-%s-%s", hashIn10, hashIn30)) // Pack from 10->40 will contain a delta due to content change (and rename). info = ts.createPack("os-core", 10, 40, ts.path("image")) mustHaveDeltaCount(t, info, 1) // Note that the delta refers to the version of the file, which is still 30. - checkFileInPack(t, ts.path("www/40/pack-os-core-from-10.tar"), fmt.Sprintf("delta/10-30-%s-%s", hashIn10, hashIn30)) + checkFileInPack(t, ts.path("www/40/pack-os-core-from-10.tar"), fmt.Sprintf("delta/10-20-%s-%s", hashIn10, hashIn30)) } // TestPackNoDeltas will test cases where there are no delta files