Skip to content

Commit

Permalink
swap test model dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-gray101 committed Feb 28, 2024
1 parent 2f9c5fc commit 78ac238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/http/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ var _ = Describe("API test", func() {
var err error
tmpdir, err = os.MkdirTemp("", "")
Expect(err).ToNot(HaveOccurred())
modelDir := filepath.Join(tmpdir, "models")
err = os.Mkdir(modelDir, 0666)
Expect(err).ToNot(HaveOccurred())

c, cancel = context.WithCancel(context.Background())

Expand Down Expand Up @@ -175,7 +178,7 @@ var _ = Describe("API test", func() {
append(commonOpts,
config.WithContext(c),
config.WithGalleries(galleries),
config.WithModelPath(tmpdir),
config.WithModelPath(modelDir),
config.WithBackendAssets(backendAssets), config.WithBackendAssetsOutput(tmpdir))...)
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit 78ac238

Please sign in to comment.