From 6525717945735c4472f3bfec0e4a3a55ddf6f00d Mon Sep 17 00:00:00 2001 From: Pontus Freyhult Date: Mon, 11 Mar 2024 10:15:08 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Joakim Bygdell --- model/headers/headers_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/model/headers/headers_test.go b/model/headers/headers_test.go index e7efffb..cea7b52 100644 --- a/model/headers/headers_test.go +++ b/model/headers/headers_test.go @@ -339,12 +339,10 @@ func TestReEncryptedHeaderReplacementAndAddition(t *testing.T) { } newDel, ok = header.HeaderPackets[1].EncryptedHeaderPacket.(DataEditListHeaderPacket) - if !ok { t.Logf("Not DEL as expected: %v", header.HeaderPackets[1].EncryptedHeaderPacket) t.Fail() } - if newDel.NumberLengths != 4 || !reflect.DeepEqual(newDel.Lengths, []uint64{0, 5, 10, 15}) { t.Logf("Unexpected length (%d vs 4) or content in copied DEL: %v vs {0, 5, 10, 15}", newDel.NumberLengths, newDel.Lengths) t.Fail()