From c3ae3f20f58b25aa6aba480ddc2239fd09e610cb Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Wed, 24 Aug 2016 16:17:40 -0800 Subject: PLT-3695 refactoring to use sql_upgrader (#3788) * PLT-3695 unitying upgrade support * PLT-3695 refactoring to use sql_upgrader * Fixing unit test * Adding 3.3 to 3.4 * Fixing upgrading * Seperating DB schema from version.go * Fixing upgrade cmd * Moving to const for exit codes * remving old unused code --- store/sql_store_test.go | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'store/sql_store_test.go') diff --git a/store/sql_store_test.go b/store/sql_store_test.go index 721e708b5..d65d591ad 100644 --- a/store/sql_store_test.go +++ b/store/sql_store_test.go @@ -34,34 +34,6 @@ func TestSqlStore1(t *testing.T) { utils.LoadConfig("config.json") } -func TestSqlStore2(t *testing.T) { - defer func() { - if r := recover(); r == nil { - t.Fatal("should have been fatal") - } - }() - - utils.LoadConfig("config.json") - utils.Cfg.SqlSettings.DriverName = "missing" - store = NewSqlStore() - - utils.LoadConfig("config.json") -} - -func TestSqlStore3(t *testing.T) { - defer func() { - if r := recover(); r == nil { - t.Fatal("should have been fatal") - } - }() - - utils.LoadConfig("config.json") - utils.Cfg.SqlSettings.DataSource = "missing" - store = NewSqlStore() - - utils.LoadConfig("config.json") -} - func TestEncrypt(t *testing.T) { m := make(map[string]string) -- cgit v1.2.3-1-g7c22