Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(tests): use in-memory db for autoplay config tests

Gabe Kangas41504e905737
diff --git a/persistence/configrepository/config_autoplay_test.go b/persistence/configrepository/config_autoplay_test.go
index d8100a8ece..dc736d5809 100644
--- a/persistence/configrepository/config_autoplay_test.go
+++ b/persistence/configrepository/config_autoplay_test.go
@@ -2,7 +2,6 @@ package configrepository
import (
"os"
- "path/filepath"
"testing"
"github.com/owncast/owncast/services/datastore"
@@ -10,8 +9,7 @@ import (
func newAutoplayTestRepo(t *testing.T) ConfigRepository {
t.Helper()
- dir := t.TempDir()
- ds, err := datastore.SetupPersistence(filepath.Join(dir, "autoplay-test.db"), os.TempDir())
+ ds, err := datastore.SetupPersistence(":memory:", os.TempDir())
if err != nil {
t.Fatalf("failed to set up datastore: %v", err)
}