Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBG-842 - Add TestBucket override for RestTester #4568

Merged
merged 1 commit into from May 6, 2020
Merged

Conversation

bbrks
Copy link
Member

@bbrks bbrks commented May 6, 2020

Allows tests to use multiple RestTester instances pointing to the same bucket (to simulate multi-node SG scenarios)

Example Usage:

tb := base.GetTestBucket(t)
defer tb.Close()

dbc := DbConfig{AutoImport: true, EnableXattrs: base.BoolPtr(true)}

rt1 := NewRestTester(t, &RestTesterConfig{TestBucket: tb, DatabaseConfig: &dbc})
defer rt1.Close()

rt2 := NewRestTester(t, &RestTesterConfig{TestBucket: tb, DatabaseConfig: &dbc})
defer rt2.Close()

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 61.73% when pulling 6e16588 on CBG-842 into 21975e2 on master.

@adamcfraser adamcfraser merged commit a28e28f into master May 6, 2020
@adamcfraser adamcfraser deleted the CBG-842 branch May 6, 2020 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants