Skip to content

Commit

Permalink
stabellize test
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Jul 10, 2024
1 parent 5cf31da commit 4e41452
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions end_to_end/end_to_end_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2325,6 +2325,10 @@ LANGUAGE plpgsql NO SQL;`)
output, err := gprestoreCmd.CombinedOutput()
Expect(err).To(HaveOccurred())
Expect(string(output)).To(ContainSubstring(`null value in column "c" violates not-null constraint`))
Expect(string(output)).To(MatchRegexp(`Error loading data into table public.c: COPY c, line 1: "\d,c": ERROR: null value in column "c" violates not-null constraint`))
Expect(string(output)).To(MatchRegexp(`Error loading data into table public.d: COPY d, line 1: "\d,d": ERROR: null value in column "c" violates not-null constraint`))
Expect(string(output)).To(MatchRegexp(`Error loading data into table public.e: COPY e, line 1: "\d,e": ERROR: null value in column "c" violates not-null constraint`))
Expect(string(output)).To(ContainSubstring(`Encountered 3 error(s) during table data restore`))
assertArtifactsCleaned(restoreConn, "20240710143553")
testhelper.AssertQueryRuns(restoreConn, "DROP TABLE a; DROP TABLE b; DROP TABLE c; DROP TABLE d; DROP TABLE e; DROP TABLE f; DROP TABLE g; DROP TABLE h;")
})
Expand Down

0 comments on commit 4e41452

Please sign in to comment.