Skip to content

Commit

Permalink
Remove redundant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividasK committed Aug 8, 2024
1 parent ff3ad3f commit 82c4e30
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions core/capabilities/targets/write_target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,16 @@ func TestWriteTarget(t *testing.T) {
})
require.NoError(t, err)

// type ReportV1Metadata struct {
// Version uint8
// WorkflowExecutionID [32]byte
// Timestamp uint32
// DonID uint32
// DonConfigVersion uint32
// WorkflowCID [32]byte
// WorkflowName [10]byte
// WorkflowOwner [20]byte
// ReportID [2]byte
// }

reportMetadata := targets.ReportV1Metadata{
Version: 1,
WorkflowExecutionID: [32]byte{1, 2, 3},
WorkflowExecutionID: [32]byte{},
Timestamp: 0,
DonID: 0,
DonConfigVersion: 0,
WorkflowCID: [32]byte{1, 2, 3},
WorkflowName: [10]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
WorkflowOwner: [20]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20},
ReportID: [2]byte{1, 2},
WorkflowCID: [32]byte{},
WorkflowName: [10]byte{},
WorkflowOwner: [20]byte{},
ReportID: [2]byte{},
}

reportMetadataBytes, err := reportMetadata.Encode()
Expand Down

0 comments on commit 82c4e30

Please sign in to comment.