@@ -10,6 +10,7 @@ import (
1010 "github.com/google/go-cmp/cmp/cmpopts"
1111 "github.com/linode/linodego"
1212 "github.com/stretchr/testify/assert"
13+ "github.com/stretchr/testify/require"
1314
1415 infrav1alpha2 "github.com/linode/cluster-api-provider-linode/api/v1alpha2"
1516)
@@ -535,7 +536,7 @@ func TestProcessInboundRule(t *testing.T) {
535536 logger := logr.Logger {}
536537 for _ , rule := range tt .firewall .Spec .InboundRules {
537538 err := processInboundRule (context .Background (), k8sClient , logger , rule , tt .firewall , tt .createOpts )
538- assert .NoError (t , err )
539+ require .NoError (t , err )
539540 if ! reflect .DeepEqual (tt .createOpts , tt .want ) {
540541 t .Errorf ("processInboundRule() = %v, want %v" , tt .createOpts , tt .want )
541542 }
@@ -605,7 +606,7 @@ func TestProcessOutboundRule(t *testing.T) {
605606 logger := logr.Logger {}
606607 for _ , rule := range tt .firewall .Spec .OutboundRules {
607608 err := processOutboundRule (context .Background (), k8sClient , logger , rule , tt .firewall , tt .createOpts )
608- assert .NoError (t , err )
609+ require .NoError (t , err )
609610 if ! reflect .DeepEqual (tt .createOpts , tt .want ) {
610611 t .Errorf ("processOutboundRule() = %v, want %v" , tt .createOpts , tt .want )
611612 }
0 commit comments