Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
arzonus committed Jan 28, 2025
1 parent 8e0482e commit 05018c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions common/persistence/sql/sqlplugin/sqlite/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Test_buildDSN(t *testing.T) {
cfg: &config.SQL{
DatabaseName: "cadence.db",
},
want: "file:cadence.db",
want: "file:cadence.db?_journal_mode=WAL",
},
} {
t.Run(name, func(t *testing.T) {
Expand Down Expand Up @@ -110,13 +110,12 @@ func Test_buildDSN_attrs(t *testing.T) {
cfg: &config.SQL{
DatabaseName: "cadence.db",
ConnectAttributes: map[string]string{
"cache": "PRIVATE",
"cache1 ": "NONe",
"cache1 ": "NONe ",
},
},
wantOneOf: []string{
"file:cadence.db?cache=private&cache1=none",
"file:cadence.db?cache1=none&cache=private",
"file:cadence.db?_journal_mode=WAL&cache1=none",
"file:cadence.db?cache1=none&_journal_mode=WAL",
},
},
} {
Expand Down

0 comments on commit 05018c9

Please sign in to comment.