@@ -20,19 +20,16 @@ func TestAccDeployBundleWithApp(t *testing.T) {
2020 nodeTypeId := testutil .GetCloud (t ).NodeTypeID ()
2121 instancePoolId := env .Get (ctx , "TEST_INSTANCE_POOL_ID" )
2222
23- root , err := initTestTemplate (t , ctx , "apps" , map [string ]any {
23+ root := initTestTemplate (t , ctx , "apps" , map [string ]any {
2424 "unique_id" : uniqueId ,
2525 "app_id" : appId ,
2626 "node_type_id" : nodeTypeId ,
2727 "spark_version" : defaultSparkVersion ,
2828 "instance_pool_id" : instancePoolId ,
2929 })
30- require .NoError (t , err )
3130
3231 t .Cleanup (func () {
33- err = destroyBundle (t , ctx , root )
34- require .NoError (t , err )
35-
32+ destroyBundle (t , ctx , root )
3633 app , err := wt .W .Apps .Get (ctx , apps.GetAppRequest {Name : "test-app" })
3734 if err != nil {
3835 require .ErrorContains (t , err , "does not exist" )
@@ -41,8 +38,7 @@ func TestAccDeployBundleWithApp(t *testing.T) {
4138 }
4239 })
4340
44- err = deployBundle (t , ctx , root )
45- require .NoError (t , err )
41+ deployBundle (t , ctx , root )
4642
4743 // App should exists after bundle deployment
4844 app , err := wt .W .Apps .Get (ctx , apps.GetAppRequest {Name : appId })
@@ -61,6 +57,7 @@ func TestAccDeployBundleWithApp(t *testing.T) {
6157 require .NoError (t , err )
6258
6359 job , err := wt .W .Jobs .GetBySettingsName (ctx , fmt .Sprintf ("test-job-with-cluster-%s" , uniqueId ))
60+ require .NoError (t , err )
6461
6562 content := string (data )
6663 require .Contains (t , content , fmt .Sprintf (`command:
0 commit comments