@@ -84,19 +84,15 @@ func deployBundle(t testutil.TestingT, ctx context.Context, path string) {
8484 ctx = env .Set (ctx , "BUNDLE_ROOT" , path )
8585 c := testcli .NewRunnerWithContext (t , ctx , "bundle" , "deploy" , "--force-lock" , "--auto-approve" )
8686 _ , _ , err := c .Run ()
87- if err != nil {
88- t .Fatal (err )
89- }
87+ require .NoError (t , err )
9088}
9189
9290func deployBundleWithArgs (t testutil.TestingT , ctx context.Context , path string , args ... string ) (string , string ) {
9391 ctx = env .Set (ctx , "BUNDLE_ROOT" , path )
9492 args = append ([]string {"bundle" , "deploy" }, args ... )
9593 c := testcli .NewRunnerWithContext (t , ctx , args ... )
9694 stdout , stderr , err := c .Run ()
97- if err != nil {
98- t .Fatal (err )
99- }
95+ require .NoError (t , err )
10096 return stdout .String (), stderr .String ()
10197}
10298
@@ -106,9 +102,7 @@ func deployBundleWithFlags(t testutil.TestingT, ctx context.Context, path string
106102 args = append (args , flags ... )
107103 c := testcli .NewRunnerWithContext (t , ctx , args ... )
108104 _ , _ , err := c .Run ()
109- if err != nil {
110- t .Fatal (err )
111- }
105+ require .NoError (t , err )
112106}
113107
114108func runResource (t testutil.TestingT , ctx context.Context , path , key string ) (string , error ) {
0 commit comments