@@ -295,6 +295,8 @@ var _ = Describe("API test", func() {
295
295
tmpdir , err = os .MkdirTemp ("" , "" )
296
296
Expect (err ).ToNot (HaveOccurred ())
297
297
298
+ backendPath := os .Getenv ("BACKENDS_PATH" )
299
+
298
300
modelDir = filepath .Join (tmpdir , "models" )
299
301
err = os .Mkdir (modelDir , 0750 )
300
302
Expect (err ).ToNot (HaveOccurred ())
@@ -337,7 +339,7 @@ var _ = Describe("API test", func() {
337
339
config .WithContext (c ),
338
340
config .WithGalleries (galleries ),
339
341
config .WithModelPath (modelDir ),
340
- config .WithBackendsPath (backendAssetsDir ),
342
+ config .WithBackendsPath (backendPath ),
341
343
config .WithApiKeys ([]string {apiKey }),
342
344
config .WithBackendAssets (backendAssets ),
343
345
config .WithBackendAssetsOutput (backendAssetsDir ))... )
@@ -518,6 +520,9 @@ var _ = Describe("API test", func() {
518
520
BeforeEach (func () {
519
521
var err error
520
522
tmpdir , err = os .MkdirTemp ("" , "" )
523
+
524
+ backendPath := os .Getenv ("BACKENDS_PATH" )
525
+
521
526
Expect (err ).ToNot (HaveOccurred ())
522
527
modelDir = filepath .Join (tmpdir , "models" )
523
528
backendAssetsDir := filepath .Join (tmpdir , "backend-assets" )
@@ -541,7 +546,7 @@ var _ = Describe("API test", func() {
541
546
append (commonOpts ,
542
547
config .WithContext (c ),
543
548
config .WithGeneratedContentDir (tmpdir ),
544
- config .WithBackendsPath (backendAssetsDir ),
549
+ config .WithBackendsPath (backendPath ),
545
550
config .WithGalleries (galleries ),
546
551
config .WithModelPath (modelDir ),
547
552
config .WithBackendAssets (backendAssets ),
0 commit comments