|
115 | 115 | it('can sample', function () {
|
116 | 116 | Config::set('pulse.recorders.'.Exceptions::class.'.sample_rate', 0.1);
|
117 | 117 |
|
118 |
| - report(new MyReportedException()); |
119 |
| - report(new MyReportedException()); |
120 |
| - report(new MyReportedException()); |
121 |
| - report(new MyReportedException()); |
122 |
| - report(new MyReportedException()); |
123 |
| - report(new MyReportedException()); |
124 |
| - report(new MyReportedException()); |
125 |
| - report(new MyReportedException()); |
126 |
| - report(new MyReportedException()); |
127 |
| - report(new MyReportedException()); |
| 118 | + report(new MyReportedException); |
| 119 | + report(new MyReportedException); |
| 120 | + report(new MyReportedException); |
| 121 | + report(new MyReportedException); |
| 122 | + report(new MyReportedException); |
| 123 | + report(new MyReportedException); |
| 124 | + report(new MyReportedException); |
| 125 | + report(new MyReportedException); |
| 126 | + report(new MyReportedException); |
| 127 | + report(new MyReportedException); |
128 | 128 |
|
129 | 129 | expect(Pulse::ingest())->toEqualWithDelta(1, 4);
|
130 | 130 | });
|
131 | 131 |
|
132 | 132 | it('can sample at zero', function () {
|
133 | 133 | Config::set('pulse.recorders.'.Exceptions::class.'.sample_rate', 0);
|
134 | 134 |
|
135 |
| - report(new MyReportedException()); |
136 |
| - report(new MyReportedException()); |
137 |
| - report(new MyReportedException()); |
138 |
| - report(new MyReportedException()); |
139 |
| - report(new MyReportedException()); |
140 |
| - report(new MyReportedException()); |
141 |
| - report(new MyReportedException()); |
142 |
| - report(new MyReportedException()); |
143 |
| - report(new MyReportedException()); |
144 |
| - report(new MyReportedException()); |
| 135 | + report(new MyReportedException); |
| 136 | + report(new MyReportedException); |
| 137 | + report(new MyReportedException); |
| 138 | + report(new MyReportedException); |
| 139 | + report(new MyReportedException); |
| 140 | + report(new MyReportedException); |
| 141 | + report(new MyReportedException); |
| 142 | + report(new MyReportedException); |
| 143 | + report(new MyReportedException); |
| 144 | + report(new MyReportedException); |
145 | 145 |
|
146 | 146 | expect(Pulse::ingest())->toBe(0);
|
147 | 147 | });
|
148 | 148 |
|
149 | 149 | it('can sample at one', function () {
|
150 | 150 | Config::set('pulse.recorders.'.Exceptions::class.'.sample_rate', 1);
|
151 | 151 |
|
152 |
| - report(new MyReportedException()); |
153 |
| - report(new MyReportedException()); |
154 |
| - report(new MyReportedException()); |
155 |
| - report(new MyReportedException()); |
156 |
| - report(new MyReportedException()); |
157 |
| - report(new MyReportedException()); |
158 |
| - report(new MyReportedException()); |
159 |
| - report(new MyReportedException()); |
160 |
| - report(new MyReportedException()); |
161 |
| - report(new MyReportedException()); |
| 152 | + report(new MyReportedException); |
| 153 | + report(new MyReportedException); |
| 154 | + report(new MyReportedException); |
| 155 | + report(new MyReportedException); |
| 156 | + report(new MyReportedException); |
| 157 | + report(new MyReportedException); |
| 158 | + report(new MyReportedException); |
| 159 | + report(new MyReportedException); |
| 160 | + report(new MyReportedException); |
| 161 | + report(new MyReportedException); |
162 | 162 |
|
163 | 163 | expect(Pulse::ingest())->toBe(10);
|
164 | 164 | });
|
|
0 commit comments