@@ -26,7 +26,7 @@ func TestBcBlockRequestMessageValidateBasic(t *testing.T) {
2626 }
2727
2828 for _ , tc := range testCases {
29- tc := tc
29+
3030 t .Run (tc .testName , func (t * testing.T ) {
3131 request := bcproto.BlockRequest {Height : tc .requestHeight }
3232 assert .Equal (t , tc .expectErr , blocksync .ValidateMsg (& request ) != nil , "Validate Basic had an unexpected result" )
@@ -46,7 +46,7 @@ func TestBcNoBlockResponseMessageValidateBasic(t *testing.T) {
4646 }
4747
4848 for _ , tc := range testCases {
49- tc := tc
49+
5050 t .Run (tc .testName , func (t * testing.T ) {
5151 nonResponse := bcproto.NoBlockResponse {Height : tc .nonResponseHeight }
5252 assert .Equal (t , tc .expectErr , blocksync .ValidateMsg (& nonResponse ) != nil , "Validate Basic had an unexpected result" )
@@ -71,7 +71,7 @@ func TestBcStatusResponseMessageValidateBasic(t *testing.T) {
7171 }
7272
7373 for _ , tc := range testCases {
74- tc := tc
74+
7575 t .Run (tc .testName , func (t * testing.T ) {
7676 response := bcproto.StatusResponse {Height : tc .responseHeight }
7777 assert .Equal (t , tc .expectErr , blocksync .ValidateMsg (& response ) != nil , "Validate Basic had an unexpected result" )
@@ -134,7 +134,7 @@ func TestBlocksyncMessageVectors(t *testing.T) {
134134 }
135135
136136 for _ , tc := range testCases {
137- tc := tc
137+
138138 t .Run (tc .testName , func (t * testing.T ) {
139139 bz , _ := proto .Marshal (tc .bmsg )
140140
0 commit comments