Skip to content

Commit 674b7cd

Browse files
Copilotcschleiden
andcommitted
Final cleanup and comprehensive testing of NewMysqlBackendWithDB
Co-authored-by: cschleiden <[email protected]>
1 parent 1a32710 commit 674b7cd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
vendor
66
plugin.so
77

8-
web/app/node_modules
8+
web/app/node_modulessimple
9+
*.sqlite-shm
10+
*.sqlite-wal

backend/mysql/mysql_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func (mb *mysqlBackend) GetFutureEvents(ctx context.Context) ([]*history.Event,
215215
return f, nil
216216
}
217217

218-
func TestNewMysqlBackendWithDB(t *testing.T) {
218+
func TestNewMysqlBackendWithDB_Integration(t *testing.T) {
219219
if testing.Short() {
220220
t.Skip()
221221
}
@@ -300,7 +300,7 @@ func TestNewMysqlBackendWithDB(t *testing.T) {
300300
defer testDB.Close()
301301

302302
// Test creating backend with existing DB and migrations disabled
303-
mysqlBackend := NewMysqlBackendWithDB(testDB,
303+
mysqlBackend := NewMysqlBackendWithDB(testDB,
304304
WithApplyMigrations(false),
305305
WithBackendOptions(backend.WithStickyTimeout(0)))
306306
if mysqlBackend == nil {

simple

-25.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)