Skip to content

Commit

Permalink
Update Create Asset with generic association test to remove lastTouch…
Browse files Browse the repository at this point in the history
…By from expected response

Signed-off-by: André Macedo <[email protected]>
  • Loading branch information
andremacedopv committed Oct 27, 2023
1 parent 4bcc3dc commit 6546b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tx_createAsset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ func TestCreateAssetGenericAssociation(t *testing.T) {
lastUpdated, _ := stub.GetTxTimestamp()
expectedResponse := map[string]interface{}{
"@key": "person:47061146-c642-51a1-844a-bf0b17cb5e19",
"@lastTouchBy": "org1MSP",
"@lastTx": "createAsset",
"@lastUpdated": lastUpdated.AsTime().Format(time.RFC3339),
"@assetType": "person",
Expand Down Expand Up @@ -186,6 +185,8 @@ func TestCreateAssetGenericAssociation(t *testing.T) {
t.FailNow()
}

expectedResponse["@lastTouchBy"] = "org1MSP"

if !reflect.DeepEqual(state, expectedResponse) {
log.Println("these should be equal")
log.Printf("%#v\n", state)
Expand Down

0 comments on commit 6546b51

Please sign in to comment.