summaryrefslogtreecommitdiff
path: root/internal/db/bundb/bundbnew_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-06-10 10:56:49 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-10 10:56:49 +0200
commit2385b51d5851195f6c418e72c35d1526519f23b0 (patch)
tree62c9c011b63c393913fd48656a525fa6be0f8132 /internal/db/bundb/bundbnew_test.go
parent[bugfix] Fix domain blocks get regression (#642) (diff)
downloadgotosocial-2385b51d5851195f6c418e72c35d1526519f23b0.tar.xz
[bugfix] Make accounts media_only query also work with pg (#643)
Diffstat (limited to 'internal/db/bundb/bundbnew_test.go')
-rw-r--r--internal/db/bundb/bundbnew_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/db/bundb/bundbnew_test.go b/internal/db/bundb/bundbnew_test.go
index d5e413a4f..2bd945864 100644
--- a/internal/db/bundb/bundbnew_test.go
+++ b/internal/db/bundb/bundbnew_test.go
@@ -41,6 +41,7 @@ func (suite *BundbNewTestSuite) TestCreateNewDB() {
func (suite *BundbNewTestSuite) TestCreateNewSqliteDBNoAddress() {
// create a new db with no address specified
config.SetDbAddress("")
+ config.SetDbType("sqlite")
db, err := bundb.NewBunDBService(context.Background())
suite.EqualError(err, "'db-address' was not set when attempting to start sqlite")
suite.Nil(db)