INNER CODE UNIT · Go

TestConfigureDB_WaitInterval

amacneil/dbmate · main_test.go:223

func TestConfigureDB_WaitInterval(t *testing.T) {
	var configuredDB *dbmate.DB

	app := NewApp()
	app.Commands = []*cli.Command{
		{
			Name: "test-config",
			Action: func(c *cli.Context) error {
				var err error
				configuredDB, err = configureDB(c)
				return err
			},
		},
	}

	t.Run("default", func(t *testing.T) {
		configuredDB = nil
		err := app.Run([]string{"dbmate", "test-config"})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…