File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/snippets/src/test/java/pubsub Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,19 +165,19 @@ public void testSubscriber() throws Exception {
165165 assertThat (bout .toString ()).contains ("Data: Hello " + i );
166166 }
167167
168- publishSomeMessages (10 );
168+ publishSomeMessages (3 );
169169 bout .reset ();
170170 // Test subscribe synchronously.
171171 SubscribeSyncExample .subscribeSyncExample (projectId , subscriptionId , 10 );
172- for (int i = 0 ; i < 10 ; i ++) {
172+ for (int i = 0 ; i < 3 ; i ++) {
173173 assertThat (bout .toString ()).contains ("Hello " + i );
174174 }
175175
176- publishSomeMessages (10 );
176+ publishSomeMessages (3 );
177177 bout .reset ();
178178 // Test subscribe synchronously with lease management.
179179 SubscribeSyncWithLeaseExample .subscribeSyncWithLeaseExample (projectId , subscriptionId , 10 );
180- for (int i = 0 ; i < 10 ; i ++) {
180+ for (int i = 0 ; i < 3 ; i ++) {
181181 assertThat (bout .toString ()).contains ("Hello " + i );
182182 }
183183 }
You can’t perform that action at this time.
0 commit comments