From 6546b51507b6e630caa7babdf72457aa4d8299ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Macedo?= Date: Fri, 27 Oct 2023 11:22:51 -0300 Subject: [PATCH] Update Create Asset with generic association test to remove lastTouchBy from expected response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Macedo --- test/tx_createAsset_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tx_createAsset_test.go b/test/tx_createAsset_test.go index d9ccb7b..77a873f 100644 --- a/test/tx_createAsset_test.go +++ b/test/tx_createAsset_test.go @@ -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", @@ -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)