@@ -336,10 +336,10 @@ func TestLinearSetResources(t *testing.T) {
336336 require .NoError (t , err )
337337 mustBlock (t , w2 )
338338
339- c .SetResources (map [string ]types.Resource {
339+ require . NoError ( t , c .SetResources (map [string ]types.Resource {
340340 "a" : testResource ("a" ),
341341 "b" : testResource ("b" ),
342- })
342+ }))
343343 resp1 := verifyResponse (t , w1 , "1" , 1 )
344344 updateFromSotwResponse (resp1 , & sub1 , req1 )
345345 resp2 := verifyResponse (t , w2 , "1" , 2 ) // the version was only incremented once for all resources
@@ -353,11 +353,11 @@ func TestLinearSetResources(t *testing.T) {
353353 require .NoError (t , err )
354354 mustBlock (t , w2 )
355355
356- c .SetResources (map [string ]types.Resource {
356+ require . NoError ( t , c .SetResources (map [string ]types.Resource {
357357 "a" : testResource ("aa" ),
358358 "b" : testResource ("b" ),
359359 "c" : testResource ("c" ),
360- })
360+ }))
361361 resp1 = verifyResponse (t , w1 , "2" , 1 )
362362 updateFromSotwResponse (resp1 , & sub1 , req1 )
363363 resp2 = verifyResponse (t , w2 , "2" , 3 )
@@ -371,10 +371,10 @@ func TestLinearSetResources(t *testing.T) {
371371 require .NoError (t , err )
372372 mustBlock (t , w2 )
373373
374- c .SetResources (map [string ]types.Resource {
374+ require . NoError ( t , c .SetResources (map [string ]types.Resource {
375375 "b" : testResource ("b" ),
376376 "c" : testResource ("c" ),
377- })
377+ }))
378378 mustBlock (t , w1 ) // removing a resource from the set does not trigger the watch for non full state resources
379379 verifyResponse (t , w2 , "3" , 2 )
380380}
@@ -387,7 +387,7 @@ func TestLinearGetResources(t *testing.T) {
387387 "b" : testResource ("b" ),
388388 }
389389
390- c .SetResources (expectedResources )
390+ require . NoError ( t , c .SetResources (expectedResources ) )
391391
392392 resources := c .GetResources ()
393393
@@ -778,7 +778,7 @@ func TestLinearDeltaResourceDelete(t *testing.T) {
778778 {Priority : 10 },
779779 }}
780780 hashA = hashResource (t , a )
781- c .SetResources (map [string ]types.Resource {"a" : a })
781+ require . NoError ( t , c .SetResources (map [string ]types.Resource {"a" : a }) )
782782 verifyDeltaResponse (t , w , []resourceInfo {{"a" , hashA }}, []string {"b" })
783783}
784784
0 commit comments