File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
ravendb/tests/jvm_migrated_tests/client_tests/counters_tests Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -71,3 +71,23 @@ def test_increment_counter(self):
7171
7272 val = self .store .operations .send (GetCountersOperation (user_id2 , "votes" ))
7373 self .assertEqual (1000 , val .counters [0 ].total_value )
74+
75+ def test_increment_many_counters (self ):
76+ counter_count = 20000
77+
78+ with self .store .bulk_insert () as bulk_insert :
79+ user1 = User (name = "Aviv1" )
80+ bulk_insert .store (user1 )
81+ user1_id = user1 .Id
82+
83+ counter = bulk_insert .counters_for (user1_id )
84+
85+ for i in range (1 , counter_count + 1 , 1 ):
86+ counter .increment (str (i ), i )
87+
88+ counters = self .store .operations .send (GetCountersOperation (user1_id )).counters
89+
90+ self .assertEqual (counter_count , len (counters ))
91+
92+ for counter in counters :
93+ self .assertEqual (int (counter .counter_name ), counter .total_value )
You can’t perform that action at this time.
0 commit comments