Skip to content

Commit 11de4c8

Browse files
committed
CBG-3741 test fix: Cherry-pick 3.1.4-fix to slow down rosmar tests (#6695)
* Cherry-pick 3.1.4-fix to slow down rosmar tests
1 parent c4d2f27 commit 11de4c8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rest/blip_api_crud_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,14 @@ func TestBlipSendConcurrentRevs(t *testing.T) {
12051205
maxConcurrentRevs = 10
12061206
concurrentSendRevNum = 50
12071207
)
1208-
rt := NewRestTester(t, &RestTesterConfig{maxConcurrentRevs: base.IntPtr(maxConcurrentRevs)})
1208+
rt := NewRestTester(t, &RestTesterConfig{
1209+
leakyBucketConfig: &base.LeakyBucketConfig{
1210+
UpdateCallback: func(_ string) {
1211+
time.Sleep(time.Millisecond * 5) // slow down rosmar - it's too quick to be throttled
1212+
},
1213+
},
1214+
maxConcurrentRevs: base.IntPtr(maxConcurrentRevs),
1215+
})
12091216
defer rt.Close()
12101217
btSpec := BlipTesterSpec{
12111218
connectingUsername: "user1",

0 commit comments

Comments
 (0)