From 01852631fb0b905edab6ae7846fd65996857078f Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 16 Feb 2020 17:24:51 +0100 Subject: [PATCH] Remove option to skip resets in postgres Signed-off-by: kolaente --- pkg/db/test_fixtures.go | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/pkg/db/test_fixtures.go b/pkg/db/test_fixtures.go index 6d53f0873..0c6a25f62 100644 --- a/pkg/db/test_fixtures.go +++ b/pkg/db/test_fixtures.go @@ -51,27 +51,15 @@ func InitFixtures(tablenames ...string) (err error) { testfiles, } - if config.DatabaseType.GetString() == "postgres" { - loaderOptions = append(loaderOptions, testfixtures.SkipResetSequences()) - } + // if config.DatabaseType.GetString() == "postgres" { + // loaderOptions = append(loaderOptions, testfixtures.SkipResetSequences()) + // } fixtures, err = testfixtures.New(loaderOptions...) if err != nil { return err } - // var helper testfixtures.Helper = &testfixtures.SQLite{} - // if config.DatabaseType.GetString() == "mysql" { - // helper = &testfixtures.MySQL{} - // } else if config.DatabaseType.GetString() == "postgres" { - // helper = &testfixtures.PostgreSQL{ - // // This prevents issues with entries that already exist in the db - // SkipResetSequences: true, - // } - // } - // - // testfixtures.SkipDatabaseNameCheck(true) - return err }