Repository: onflow/flow-cli
Pull request #1653 (2024-06-13 15:47:09)

Update to Cadence v1.0.0-preview.34

## Description

Automatically update to:
- [onflow/cadence v1.0.0-preview.34](https://github.com/onflow/cadence/releases/tag/v1.0.0-preview.34)
- [onflow/flow-go-sdk v1.0.0-preview.36](https://github.com/onflow/flow-go-sdk/releases/tag/v1.0.0-preview.36)
- [onflow/flow-go v0.35.14-crescendo-preview.27](https://github.com/onflow/flow-go/releases/tag/v0.35.14-crescendo-preview.27)
- [onflow/flow-emulator v1.0.0-preview.32](https://github.com/onflow/flow-emulator/releases/tag/v1.0.0-preview.32)
- [onflow/cadence-tools/test v1.0.0-preview.32](https://github.com/onflow/cadence-tools/test/releases/tag/v1.0.0-preview.32)
- [onflow/cadence-tools/lint v1.0.0-preview.32](https://github.com/onflow/cadence-tools/lint/releases/tag/v1.0.0-preview.32)
- [onflow/cadence-tools/languageserver v1.0.0-preview.32](https://github.com/onflow/cadence-tools/languageserver/releases/tag/v1.0.0-preview.32)
- [onflow/flixkit-go v1.2.1-cadence-v1-preview.18](https://github.com/onflow/flixkit-go/releases/tag/v1.2.1-cadence-v1-preview.18)
- [onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.24](https://github.com/onflow/flowkit/v2/releases/tag/v2.0.0-stable-cadence-alpha.24)
- [onflow/flow-evm-gateway v0.19.0](https://github.com/onflow/flow-evm-gateway/releases/tag/v0.19.0)




Patch:
diff --git a/go.mod b/go.mod
index b00717b3..bfa84e96 100644
--- a/go.mod
+++ b/go.mod
@@ -14,19 +14,19 @@ require (
 	github.com/gosuri/uilive v0.0.4
 	github.com/logrusorgru/aurora/v4 v4.0.0
 	github.com/manifoldco/promptui v0.9.0
-	github.com/onflow/cadence v1.0.0-preview.32
-	github.com/onflow/cadence-tools/languageserver v1.0.0-preview.31
-	github.com/onflow/cadence-tools/lint v1.0.0-preview.31
-	github.com/onflow/cadence-tools/test v1.0.0-preview.31
+	github.com/onflow/cadence v1.0.0-preview.34
+	github.com/onflow/cadence-tools/languageserver v1.0.0-preview.32
+	github.com/onflow/cadence-tools/lint v1.0.0-preview.32
+	github.com/onflow/cadence-tools/test v1.0.0-preview.32
 	github.com/onflow/contract-updater/lib/go/templates v1.0.1
 	github.com/onflow/fcl-dev-wallet v0.8.0-stable-cadence.1
-	github.com/onflow/flixkit-go v1.2.1-cadence-v1-preview.17
+	github.com/onflow/flixkit-go v1.2.1-cadence-v1-preview.18
 	github.com/onflow/flow-core-contracts/lib/go/templates v1.0.0
-	github.com/onflow/flow-emulator v1.0.0-preview.31
-	github.com/onflow/flow-evm-gateway v0.15.0
-	github.com/onflow/flow-go v0.35.10-crescendo-preview.25.0.20240604172940-c504b454e576
-	github.com/onflow/flow-go-sdk v1.0.0-preview.34
-	github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.23
+	github.com/onflow/flow-emulator v1.0.0-preview.32
+	github.com/onflow/flow-evm-gateway v0.19.0
+	github.com/onflow/flow-go v0.35.14-crescendo-preview.27
+	github.com/onflow/flow-go-sdk v1.0.0-preview.36
+	github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.24
 	github.com/onflow/go-ethereum v1.13.4
 	github.com/onflowser/flowser/v3 v3.2.1-0.20240131200229-7d4d22715f48
 	github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
@@ -44,10 +44,12 @@ require (
 )
 
 require (
+	cloud.google.com/go v0.112.1 // indirect
 	cloud.google.com/go/compute v1.25.1 // indirect
 	cloud.google.com/go/compute/metadata v0.2.3 // indirect
 	cloud.google.com/go/iam v1.1.6 // indirect
 	cloud.google.com/go/kms v1.15.7 // indirect
+	cloud.google.com/go/storage v1.38.0 // indirect
 	dario.cat/mergo v1.0.0 // indirect
 	github.com/DataDog/zstd v1.5.2 // indirect
 	github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect
diff --git a/go.sum b/go.sum
index 9404a52c..df038be4 100644
--- a/go.sum
+++ b/go.sum
@@ -826,8 +826,8 @@ cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi
 cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y=
 cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4=
 cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E=
-cloud.google.com/go/storage v1.36.0 h1:P0mOkAcaJxhCTvAkMhxMfrTKiNcub4YmmPBtlhAyTr8=
-cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8=
+cloud.google.com/go/storage v1.38.0 h1:Az68ZRGlnNTpIBbLjSMIV2BDcwwXYlRlQzis0llkpJg=
+cloud.google.com/go/storage v1.38.0/go.mod h1:tlUADB0mAb9BgYls9lq+8MGkfzOXuLrnHXlpHmvFJoY=
 cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w=
 cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I=
 cloud.google.com/go/storagetransfer v1.7.0/go.mod h1:8Giuj1QNb1kfLAiWM1bN6dHzfdlDAVC9rv9abHot2W4=
@@ -1602,10 +1602,12 @@ github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/
 github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
 github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8=
 github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo=
+github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=
 github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
 github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
 github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
 github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk=
+github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw=
 github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk=
 github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
 github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
@@ -2155,14 +2157,14 @@ github.com/onflow/atree v0.6.1-0.20230711151834-86040b30171f/go.mod h1:xvP61FoOs
 github.com/onflow/atree v0.7.0-rc.2 h1:mZmVrl/zPlfI44EjV3FdR2QwIqT8nz1sCONUBFcML/U=
 github.com/onflow/atree v0.7.0-rc.2/go.mod h1:xvP61FoOs95K7IYdIYRnNcYQGf4nbF/uuJ0tHf4DRuM=
 github.com/onflow/cadence v1.0.0-M3/go.mod h1:odXGZZ/wGNA5mwT8bC9v8u8EXACHllB2ABSZK65TGL8=
-github.com/onflow/cadence v1.0.0-preview.32 h1:M4IdYtUt78D33vLegoNtNU4H/PoBy9J8Xk42EiCRkiE=
-github.com/onflow/cadence v1.0.0-preview.32/go.mod h1:3LM1VgE9HkJ815whY/F0LYWULwJa8p2nJiKyIIxpGAE=
-github.com/onflow/cadence-tools/languageserver v1.0.0-preview.31 h1:yeIme2HdeOb+N/ChuASIAbTlp6a6490UdEXnznfGD1A=
-github.com/onflow/cadence-tools/languageserver v1.0.0-preview.31/go.mod h1:Tdc0JxyLn36w3OUD9CHMNDbi2UFst1SQrE9MolChrsY=
-github.com/onflow/cadence-tools/lint v1.0.0-preview.31 h1:m7MfaVNTNHj/dxT+0FtBC4fkq39Lx5FAAlYHBzls2Hg=
-github.com/onflow/cadence-tools/lint v1.0.0-preview.31/go.mod h1:WQ5sArOMOOVZMKZdCFXuWlJ1Dt5Nr7xZobroHNGX1rA=
-github.com/onflow/cadence-tools/test v1.0.0-preview.31 h1:tYCd/Mlo6fnkGmiBWiPDdIuKAxYjwIA5je5UEUcm12I=
-github.com/onflow/cadence-tools/test v1.0.0-preview.31/go.mod h1:omb9y/D1DEFKEiGczaO+sYRX4v4skumI/64L/pD40MI=
+github.com/onflow/cadence v1.0.0-preview.34 h1:MJSli75W6LJVUqSx/tq4MQe64H1+EcQBD/sNgpOO4jE=
+github.com/onflow/cadence v1.0.0-preview.34/go.mod h1:jOwvPSSLTr9TvaKMs7KKiBYMmpdpNNAFxBsjMlrqVD0=
+github.com/onflow/cadence-tools/languageserver v1.0.0-preview.32 h1:bcXyutzucIKXvrOPU3YcTcYMNUsEVQpnPwBT4Y4n3eI=
+github.com/onflow/cadence-tools/languageserver v1.0.0-preview.32/go.mod h1:jD3nHNc67XrWd/IC714vN1N7odAXjCfg8M/y+f5OdH4=
+github.com/onflow/cadence-tools/lint v1.0.0-preview.32 h1:ikRHM2aBd1OT8go4Ru/UWmmoEgfRHsWo1Hh4uOlQ91o=
+github.com/onflow/cadence-tools/lint v1.0.0-preview.32/go.mod h1:0DlaXiefoamdXaOvMDLY5xg+qtkjG2YP82iCaDAGkp0=
+github.com/onflow/cadence-tools/test v1.0.0-preview.32 h1:UBxfDY+za0cU0Dxt2t5bro+XtnZyvdPKiAHtRIujLfk=
+github.com/onflow/cadence-tools/test v1.0.0-preview.32/go.mod h1:V5JDHX9mm+ta2Ejl+oActaxGNiToaABs4M+m1a871TY=
 github.com/onflow/contract-updater/lib/go/templates v1.0.1 h1:xPj898Y8OgLLbXH8+JeKVBV6J+nqPZjiLgGM3Abucto=
 github.com/onflow/contract-updater/lib/go/templates v1.0.1/go.mod h1:OXO6s0X7OW4Q6QTfAfnjoOmibEPgs0psOfMi+tPyzQE=
 github.com/onflow/crypto v0.25.0/go.mod h1:C8FbaX0x8y+FxWjbkHy0Q4EASCDR9bSPWZqlpCLYyVI=
@@ -2170,25 +2172,25 @@ github.com/onflow/crypto v0.25.1 h1:0txy2PKPMM873JbpxQNbJmuOJtD56bfs48RQfm0ts5A=
 github.com/onflow/crypto v0.25.1/go.mod h1:C8FbaX0x8y+FxWjbkHy0Q4EASCDR9bSPWZqlpCLYyVI=
 github.com/onflow/fcl-dev-wallet v0.8.0-stable-cadence.1 h1:IqdUzdqFCSW0klWmA3J9c17ZyQTab9SWcWSLouX6o0Q=
 github.com/onflow/fcl-dev-wallet v0.8.0-stable-cadence.1/go.mod h1:kc42jkiuoPJmxMRFjfbRO9XvnR/3XLheaOerxVMDTiw=
-github.com/onflow/flixkit-go v1.2.1-cadence-v1-preview.17 h1:rm2mqkBrWWDHMFMeMs7qoBFV2JuG6lHwaGxdwFS5G9Q=
-github.com/onflow/flixkit-go v1.2.1-cadence-v1-preview.17/go.mod h1:U0smJI8ezNK5NFBKR6PNV9+0sVQfhRhe+Y1qDjU6Ayo=
+github.com/onflow/flixkit-go v1.2.1-cadence-v1-preview.18 h1:3IznBzxdXKrVJ8YDaA2dSQD2HQeWmsL3HsjZY86L+5o=
+github.com/onflow/flixkit-go v1.2.1-cadence-v1-preview.18/go.mod h1:dZqcdrsDdvBs5433bkXC8KN0l/jCamerWcmaB1P7YM4=
 github.com/onflow/flow-core-contracts/lib/go/contracts v1.1.0 h1:AegPBm079X0qjneUYs+mRCpEUxSZ1lw5h4MbuXHlqn0=
 github.com/onflow/flow-core-contracts/lib/go/contracts v1.1.0/go.mod h1:u/mkP/B+PbV33tEG3qfkhhBlydSvAKxfLZSfB4lsJHg=
 github.com/onflow/flow-core-contracts/lib/go/templates v1.0.0 h1:za6bxPPW4JIsthhasUDTa1ruKjIO8DIhun9INQfj61Y=
 github.com/onflow/flow-core-contracts/lib/go/templates v1.0.0/go.mod h1:NgbMOYnMh0GN48VsNKZuiwK7uyk38Wyo8jN9+C9QE30=
-github.com/onflow/flow-emulator v1.0.0-preview.31 h1:5YCVFodWfGwkLaQHJ81lMV0ShSb7bWRm6ooB+G9VfIw=
-github.com/onflow/flow-emulator v1.0.0-preview.31/go.mod h1:aZeYXgpE8YEtWT/A9ZHfu/AO2riFEY6nJP+sc1Iru/0=
-github.com/onflow/flow-evm-gateway v0.15.0 h1:5gGXToCR03ZHZ5FdRNksrh8KFpxEmiRfjlXULSu5LTI=
-github.com/onflow/flow-evm-gateway v0.15.0/go.mod h1:A7uPcKM3bwobwYC9OjS5jhUK39ul3SfGowJ9hlJ7Yno=
+github.com/onflow/flow-emulator v1.0.0-preview.32 h1:VkJL7u75XUB8077CQvojKhxSCGirGCrsjAxjTOUIpD4=
+github.com/onflow/flow-emulator v1.0.0-preview.32/go.mod h1:wwHM6+cJ5s3BIS9Wj0pXTRumj9n929fqwNuXqOD1g7g=
+github.com/onflow/flow-evm-gateway v0.19.0 h1:gFhwFftwrbLbveLDfTm9R9IDCPgHmHlgsveaneQ3Kz8=
+github.com/onflow/flow-evm-gateway v0.19.0/go.mod h1:yvA5LRcr7xn7EniccsX19ap0yUHzfMUj2nxLyRwiu+Y=
 github.com/onflow/flow-ft/lib/go/contracts v1.0.0 h1:mToacZ5NWqtlWwk/7RgIl/jeKB/Sy/tIXdw90yKHcV0=
 github.com/onflow/flow-ft/lib/go/contracts v1.0.0/go.mod h1:PwsL8fC81cjnUnTfmyL/HOIyHnyaw/JA474Wfj2tl6A=
 github.com/onflow/flow-ft/lib/go/templates v1.0.0 h1:6cMS/lUJJ17HjKBfMO/eh0GGvnpElPgBXx7h5aoWJhs=
 github.com/onflow/flow-ft/lib/go/templates v1.0.0/go.mod h1:uQ8XFqmMK2jxyBSVrmyuwdWjTEb+6zGjRYotfDJ5pAE=
-github.com/onflow/flow-go v0.35.10-crescendo-preview.25.0.20240604172940-c504b454e576 h1:K5EFNvwiimx/wzUGDwCq6Az5Rk9EMG/OpDgjkOZpDrM=
-github.com/onflow/flow-go v0.35.10-crescendo-preview.25.0.20240604172940-c504b454e576/go.mod h1:KMLJY5pVkDsfOpm4prKwhVlVOLLXQa/4Ph6H/sQu+mM=
+github.com/onflow/flow-go v0.35.14-crescendo-preview.27 h1:sWjWsutcFOP9o/etZF3Zii0eq4MMqKQchquwmyElWCQ=
+github.com/onflow/flow-go v0.35.14-crescendo-preview.27/go.mod h1:P7AnyTH5W+hNm5pmhnYasIh7T6Z2kU4tiy53NJKvhZA=
 github.com/onflow/flow-go-sdk v1.0.0-M1/go.mod h1:TDW0MNuCs4SvqYRUzkbRnRmHQL1h4X8wURsCw9P9beo=
-github.com/onflow/flow-go-sdk v1.0.0-preview.34 h1:FXzQfz9rK08EdoZ7gTy7Ve0at6bgcV1iQN6rtrQG/7I=
-github.com/onflow/flow-go-sdk v1.0.0-preview.34/go.mod h1:blgTAtthpHf58QZiyDUaLBabMlebMtbdzvTf2K5+dds=
+github.com/onflow/flow-go-sdk v1.0.0-preview.36 h1:3g72MjmZPEEVAbtDATbjwqKoNSB7yHLWswUHSAB5zwQ=
+github.com/onflow/flow-go-sdk v1.0.0-preview.36/go.mod h1:mjkXIluC+kseYyd8Z1aTq73IiffAUeoY5fuX/C2Z+1w=
 github.com/onflow/flow-nft/lib/go/contracts v1.2.1 h1:woAAS5z651sDpi7ihAHll8NvRS9uFXIXkL6xR+bKFZY=
 github.com/onflow/flow-nft/lib/go/contracts v1.2.1/go.mod h1:2gpbza+uzs1k7x31hkpBPlggIRkI53Suo0n2AyA2HcE=
 github.com/onflow/flow-nft/lib/go/templates v1.2.0 h1:JSQyh9rg0RC+D1930BiRXN8lrtMs+ubVMK6aQPon6Yc=
@@ -2196,8 +2198,8 @@ github.com/onflow/flow-nft/lib/go/templates v1.2.0/go.mod h1:p+2hRvtjLUR3MW1NsoJ
 github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231121210617-52ee94b830c2/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk=
 github.com/onflow/flow/protobuf/go/flow v0.4.4 h1:lD1owoZGFgLcvdLZDmP0Kc4GOuQeSU3/d7hrujFzt6k=
 github.com/onflow/flow/protobuf/go/flow v0.4.4/go.mod h1:NA2pX2nw8zuaxfKphhKsk00kWLwfd+tv8mS23YXO4Sk=
-github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.23 h1:kzP761ukxZ66NOl6TZ8PWt/68hP8jN4BKWgVrNE/YvE=
-github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.23/go.mod h1:zbysj9lP0w4ktTnzMfIy9dKbI12wJPwLcuV5o15wrQc=
+github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.24 h1:D6cbWqxuwjg/vXtNWyvViCNpWjUPMYfMewA9P4oT14s=
+github.com/onflow/flowkit/v2 v2.0.0-stable-cadence-alpha.24/go.mod h1:89ipBRMJE9nWRimoqaa02+l6kCQuBiVyzszI6N3a6Sk=
 github.com/onflow/go-ethereum v1.13.4 h1:iNO86fm8RbBbhZ87ZulblInqCdHnAQVY8okBrNsTevc=
 github.com/onflow/go-ethereum v1.13.4/go.mod h1:cE/gEUkAffhwbVmMJYz+t1dAfVNHNwZCgc3BWtZxBGY=
 github.com/onflow/nft-storefront/lib/go/contracts v1.0.0 h1:sxyWLqGm/p4EKT6DUlQESDG1ZNMN9GjPCm1gTq7NGfc=


Test patch:
diff --git a/internal/cadence/lint_test.go b/internal/cadence/lint_test.go
index 850e9557..480199d3 100644
--- a/internal/cadence/lint_test.go
+++ b/internal/cadence/lint_test.go
@@ -31,10 +31,12 @@ import (
 )
 
 func Test_Lint(t *testing.T) {
-	state := setupMockState(t)
+	t.Parallel()
 
-	// Test this to make sure that lintResult exit codes are actually propogated to CLI result
+	// Test this to make sure that lintResult exit codes are actually propagated to CLI result
 	t.Run("results.exitCode exported via result.ExitCode()", func(t *testing.T) {
+		t.Parallel()
+
 		results := lintResult{
 			exitCode: 999,
 		}
@@ -42,8 +44,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("lints file with no issues", func(t *testing.T) {
-		results, error := lintFiles(state, "NoError.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "NoError.cdc")
+		require.NoError(t, err)
 
 		require.Equal(t, &lintResult{
 			Results: []fileResult{
@@ -57,8 +63,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("lints file with import", func(t *testing.T) {
-		results, error := lintFiles(state, "foo/WithImports.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "foo/WithImports.cdc")
+		require.NoError(t, err)
 
 		// Should not have results for imported file, only for the file being linted
 		require.Equal(t, &lintResult{
@@ -73,8 +83,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("lints multiple files", func(t *testing.T) {
-		results, error := lintFiles(state, "NoError.cdc", "foo/WithImports.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "NoError.cdc", "foo/WithImports.cdc")
+		require.NoError(t, err)
 
 		require.Equal(t, &lintResult{
 			Results: []fileResult{
@@ -92,8 +106,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("lints file with warning", func(t *testing.T) {
-		results, error := lintFiles(state, "LintWarning.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "LintWarning.cdc")
+		require.NoError(t, err)
 
 		require.Equal(t, &lintResult{
 			Results: []fileResult{
@@ -117,8 +135,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("lints file with error", func(t *testing.T) {
-		results, error := lintFiles(state, "LintError.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "LintError.cdc")
+		require.NoError(t, err)
 
 		require.Equal(t, &lintResult{
 			Results: []fileResult{
@@ -144,6 +166,15 @@ func Test_Lint(t *testing.T) {
 								EndPos:   ast.Position{Line: 5, Column: 5, Offset: 65},
 							},
 						},
+						{
+							Location: common.StringLocation("LintError.cdc"),
+							Category: "unused-result-hint",
+							Message:  "unused result",
+							Range: ast.Range{
+								StartPos: ast.Position{Offset: 63, Line: 5, Column: 3},
+								EndPos:   ast.Position{Offset: 65, Line: 5, Column: 5},
+							},
+						},
 					},
 				},
 			},
@@ -152,8 +183,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("linter resolves imports from flowkit state", func(t *testing.T) {
-		results, error := lintFiles(state, "WithFlowkitImport.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "WithFlowkitImport.cdc")
+		require.NoError(t, err)
 
 		require.Equal(t, results, &lintResult{
 			Results: []fileResult{
@@ -167,8 +202,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("resolves stdlib imports contracts", func(t *testing.T) {
-		results, error := lintFiles(state, "StdlibImportsContract.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "StdlibImportsContract.cdc")
+		require.NoError(t, err)
 
 		// Expects an error because getAuthAccount is only available in scripts
 		require.Equal(t, results, &lintResult{
@@ -194,8 +233,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("resolves stdlib imports transactions", func(t *testing.T) {
-		results, error := lintFiles(state, "StdlibImportsTransaction.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "StdlibImportsTransaction.cdc")
+		require.NoError(t, err)
 
 		// Expects an error because getAuthAccount is only available in scripts
 		require.Equal(t, results, &lintResult{
@@ -221,8 +264,12 @@ func Test_Lint(t *testing.T) {
 	})
 
 	t.Run("resolves stdlib imports scripts", func(t *testing.T) {
-		results, error := lintFiles(state, "StdlibImportsScript.cdc")
-		require.NoError(t, error)
+		t.Parallel()
+
+		state := setupMockState(t)
+
+		results, err := lintFiles(state, "StdlibImportsScript.cdc")
+		require.NoError(t, err)
 
 		require.Equal(t, results, &lintResult{
 			Results: []fileResult{