Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joakim Bygdell <j.bygdell@gmail.com>
  • Loading branch information
pontus and jbygdell authored Mar 11, 2024
1 parent b691fc6 commit 6525717
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions model/headers/headers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6525717

Please sign in to comment.