Skip to content

Commit

Permalink
fix: faulty testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashwat-K committed May 26, 2024
1 parent f2a3712 commit e09c8e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contract/contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const (

sampleComposeFolderPath = "../samples/tgz"
sampleComposeFolderChecksum = "3e4a006b9422a3fbf8c58d4f1dbac4494b34f800ddbb6e048c31709bb0cde599"
sampleFolderTgzChecksum = "4fde7c46fdc83340ea93d7a0746e53e21711bf2ee3a99669b55f5e469a89b1c1"

simpleContractPath = "../samples/simple_contract.yaml"
simpleContractInputChecksum = "072cd6d89d9d253a0426eadea7217aedfe86197bfb8a5b4873386fcaa72ddfda"
Expand Down Expand Up @@ -145,14 +144,13 @@ func TestHpcrJsonEncrypted(t *testing.T) {

// Testcase to check if HpcrTgz() is able to generate base64 of tar.tgz
func TestHpcrTgz(t *testing.T) {
result, inputSha256, outputSha256, err := HpcrTgz(sampleComposeFolderPath)
result, inputSha256, _, err := HpcrTgz(sampleComposeFolderPath)
if err != nil {
t.Errorf("failed to generate HPCR TGZ - %v", err)
}

assert.NotEmpty(t, result)
assert.Equal(t, inputSha256, sampleComposeFolderChecksum)
assert.Equal(t, outputSha256, sampleFolderTgzChecksum)
}

func TestHpcrTgzEncrypted(t *testing.T) {
Expand Down

0 comments on commit e09c8e2

Please sign in to comment.