Skip to content

Commit

Permalink
roachtest: update rust-postgres blocklist
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
RichardJCai committed May 23, 2022
1 parent e6e623f commit df545f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 5 additions & 4 deletions pkg/cmd/roachtest/tests/rust_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ func registerRustPostgres(r registry.Registry) {

t.Status("building rust postgres (without test)")

blocklistName, expectedFailures, ignorelistName, ignorelist := rustPostgresBlocklists.getLists(version)
if expectedFailures == nil {
t.Fatalf("No rust-postgres blocklist defined for cockroach version %s", version)
}
blocklistName := "rustPostgresBlockList"
ignorelistName := "rustPostgresIgnoreList"
expectedFailures := rustPostgresBlocklist
ignorelist := rustPostgresIgnoreList

status := fmt.Sprintf("running cockroach version %s, using blocklist %s", version, blocklistName)
if ignorelist != nil {
status = fmt.Sprintf(
Expand Down
8 changes: 2 additions & 6 deletions pkg/cmd/roachtest/tests/rust_postgres_blocklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

package tests

var rustPostgresBlocklists = blocklistsForVersion{
{"v22.1", "rustPostgresBlocklist22_1", rustPostgresBlocklist22_1, "rustPostgresIgnoreList22_1", rustPostgresIgnoreList22_1},
}

var rustPostgresBlocklist22_1 = blocklist{}
var rustPostgresBlocklist = blocklist{}

var rustPostgresIgnoreList22_1 = blocklist{
var rustPostgresIgnoreList = blocklist{
"binary_copy.read_basic": "unknown",
"binary_copy.read_big_rows": "unknown",
"binary_copy.read_many_rows": "unknown",
Expand Down

0 comments on commit df545f5

Please sign in to comment.