Skip to content

Commit

Permalink
update test name + make test pass with non xattrs
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Jul 26, 2024
1 parent 22dc0a4 commit 8159aac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion base/leaky_datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ func (lds *LeakyDataStore) Update(k string, exp uint32, callback sgbucket.Update
lds.config.UpdateCallback(k)
return updated, expiry, isDelete, err
}
return lds.dataStore.Update(k, exp, wrapperCallback)
casOut, err = lds.dataStore.Update(k, exp, wrapperCallback)
for _, errorKey := range lds.config.ForceTimeoutErrorOnUpdateKeys {
if k == errorKey {
return 0, ErrTimeout
}
}
return casOut, err
}

casOut, err = lds.dataStore.Update(k, exp, callback)
Expand Down
2 changes: 1 addition & 1 deletion db/crud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ func TestAssignSequenceReleaseLoop(t *testing.T) {
// - Assert we don;t release a sequence for it + we hav eit in changes
// - Write new doc with conflict error
// - Assert we release a sequence for this
func TestReleaseSequenceOnDocWrite(t *testing.T) {
func TestReleaseSequenceOnDocWriteFailure(t *testing.T) {
defer SuspendSequenceBatching()()
base.SetUpTestLogging(t, base.LevelDebug, base.KeyAll)

Expand Down

0 comments on commit 8159aac

Please sign in to comment.