From 74492c7e6ee71f4dc3573b7a7b43004881de8269 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Fri, 2 Sep 2022 00:51:07 +0000 Subject: [PATCH] fix testcases --- swupd/packs_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swupd/packs_test.go b/swupd/packs_test.go index 2fb59c5b..6744d6d9 100644 --- a/swupd/packs_test.go +++ b/swupd/packs_test.go @@ -304,19 +304,19 @@ func TestCreatePackNonConsecutiveDeltas(t *testing.T) { info = ts.createPack("contents", 20, 30, ts.path("image")) mustHaveDeltaCount(t, info, 3) checkFileInPack(t, ts.path("www/30/pack-contents-from-20.tar"), - fmt.Sprintf("delta/20-30-%s-%s", hashA1, hashA)) + fmt.Sprintf("delta/10-20-%s-%s", hashA1, hashA)) // note that the from version is 10 since the B file did not change in 20 checkFileInPack(t, ts.path("www/30/pack-contents-from-20.tar"), - fmt.Sprintf("delta/10-30-%s-%s", hashB, hashB1)) + fmt.Sprintf("delta/10-20-%s-%s", hashB, hashB1)) checkFileInPack(t, ts.path("www/30/pack-contents-from-20.tar"), - fmt.Sprintf("delta/20-30-%s-%s", hashC1, hashC2)) + fmt.Sprintf("delta/10-20-%s-%s", hashC1, hashC2)) info = ts.createPack("contents", 10, 30, ts.path("image")) mustHaveDeltaCount(t, info, 2) checkFileInPack(t, ts.path("www/30/pack-contents-from-10.tar"), - fmt.Sprintf("delta/10-30-%s-%s", hashB, hashB1)) + fmt.Sprintf("delta/10-20-%s-%s", hashB, hashB1)) checkFileInPack(t, ts.path("www/30/pack-contents-from-10.tar"), - fmt.Sprintf("delta/10-30-%s-%s", hashC, hashC2)) + fmt.Sprintf("delta/10-20-%s-%s", hashC, hashC2)) } func TestCreatePackWithDelta(t *testing.T) {