Skip to content

Commit

Permalink
CBG-4242: TestReleaseSequenceOnDocWriteFailure flake (#7172)
Browse files Browse the repository at this point in the history
* CBG-4242: TestReleaseSequenceOnDocWriteFailure flake

* remove test skip on rebase
  • Loading branch information
gregns1 authored Oct 29, 2024
1 parent ec2b87c commit 80775ce
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions db/crud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1691,20 +1691,15 @@ func TestAssignSequenceReleaseLoop(t *testing.T) {
// - Write new doc with conflict error
// - Assert we release a sequence for this
func TestReleaseSequenceOnDocWriteFailure(t *testing.T) {
if !base.UnitTestUrlIsWalrus() {
t.Skip("skipping for CBS pending CBG-4242")
}
defer SuspendSequenceBatching()()
base.SetUpTestLogging(t, base.LevelDebug, base.KeyAll)

var ctx context.Context
var db *Database
var forceDocConflict bool

const (
conflictDoc = "doc1"
timeoutDoc = "doc"
)
conflictDoc := t.Name() + "_conflict"
timeoutDoc := t.Name() + "_timeout"

// call back to create a conflict mid write and force a non timeout error upon write attempt
writeUpdateCallback := func(key string) {
Expand Down

0 comments on commit 80775ce

Please sign in to comment.