File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -457,11 +457,11 @@ func TestLoadGenRateLimiterServer(t *testing.T) {
457457 t .Parallel ()
458458 clientConf := DefaultClientConf (t , test .InsecureTLSConfig )
459459 clientConf .Adapter .VerifierClient = startVerifiers (t , test .InsecureTLSConfig , test .InsecureTLSConfig )
460- curRate := uint64 (100 )
460+ curRate := uint64 (10 )
461461 clientConf .Stream .RateLimit = curRate
462462 // We use small wait to ensure the rate limiter serves in low granularity.
463463 clientConf .LoadProfile .Block .PreferredRate = 10 * time .Millisecond
464- clientConf .LoadProfile .Block .MaxSize = 100
464+ clientConf .LoadProfile .Block .MaxSize = 10
465465 clientConf .LoadProfile .Block .MinSize = 1
466466 clientConf .HTTPServer = test .NewLocalHostServer (test .InsecureTLSConfig )
467467
@@ -495,7 +495,7 @@ func TestLoadGenRateLimiterServer(t *testing.T) {
495495 requireGetRate (curRate )
496496 requireEventuallyMeasuredRate (t , client .resources .Metrics , curRate )
497497
498- curRate = uint64 (1_000 )
498+ curRate = uint64 (50 )
499499 setRate (curRate )
500500 requireGetRate (curRate )
501501 requireEventuallyMeasuredRate (t , client .resources .Metrics , curRate )
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ func TestGetUpdatesFromNamespace(t *testing.T) {
4040 ReadWrites : items ,
4141 }
4242 update := GetUpdatesFromNamespace (tx )
43+ require .NotNil (t , update )
4344 require .NotNil (t , update .GetNamespacePolicies ())
4445 require .Nil (t , update .Config )
4546 require .Len (t , update .NamespacePolicies .Policies , len (items ))
You can’t perform that action at this time.
0 commit comments