Port: 5433 + GinkgoParallelNode(), } dbProcess = ifrit.Envoke(postgresRunner) postgresRunner.CreateTestDB() dbConn, err = migration.Open("postgres", postgresRunner.DataSourceName(), precedingMigrations) Ω(err).ShouldNot(HaveOccurred()) }) AfterEach(func() { err := dbConn.Close() Ω(err).ShouldNot(HaveOccurred()) postgresRunner.DropTestDB() dbProcess.Signal(os.Interrupt) Eventually(dbProcess.Wait(), 10*time.Second).Should(Receive()) }) JustBeforeEach(func() { tx, err := dbConn.Begin() Ω(err).ShouldNot(HaveOccurred()) err = migrationFromSet(tx) Ω(err).ShouldNot(HaveOccurred()) err = tx.Commit() Ω(err).ShouldNot(HaveOccurred()) })