Skip to content

Commit

Permalink
Merge pull request #2200 from josephschorr/pg-serialization-test-perf
Browse files Browse the repository at this point in the history
Disable retries on the serialization test for PG
  • Loading branch information
josephschorr authored Jan 9, 2025
2 parents 7b9f388 + bb005a2 commit a2ac1e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/datastore/postgres/postgres_shared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/authzed/spicedb/internal/testfixtures"
testdatastore "github.com/authzed/spicedb/internal/testserver/datastore"
"github.com/authzed/spicedb/pkg/datastore"
"github.com/authzed/spicedb/pkg/datastore/options"
"github.com/authzed/spicedb/pkg/datastore/test"
"github.com/authzed/spicedb/pkg/migrate"
"github.com/authzed/spicedb/pkg/namespace"
Expand Down Expand Up @@ -394,7 +395,7 @@ func SerializationErrorTest(t *testing.T, ds datastore.Datastore) {
}
rwt.(*pgReadWriteTXN).tx = txWithSerializationError{rwt.(*pgReadWriteTXN).tx}
return rwt.WriteRelationships(ctx, updates)
})
}, options.WithDisableRetries(true) /* ensures the error is returned immediately */)

require.Contains(err.Error(), "unable to write relationships due to a serialization error")
}
Expand Down

0 comments on commit a2ac1e6

Please sign in to comment.