Skip to content

Commit

Permalink
fix qrep test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Jan 8, 2024
1 parent f8a9ea6 commit bbd9deb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flow/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ func CreateTableForQRep(pool *pgxpool.Pool, suffix string, tableName string) err
tblFieldStr := strings.Join(tblFields, ",")
var pgErr *pgconn.PgError
_, enumErr := pool.Exec(context.Background(), createMoodEnum)
if errors.As(enumErr, &pgErr) && pgErr.Code != pgerrcode.DuplicateObject {
if errors.As(enumErr, &pgErr) &&
pgErr.Code != pgerrcode.DuplicateObject &&
// S3 and GCS in parallel creating the same type
pgErr.Code != pgerrcode.UniqueViolation {
return enumErr
}
_, err := pool.Exec(context.Background(), fmt.Sprintf(`
Expand Down

0 comments on commit bbd9deb

Please sign in to comment.