|
13 | 13 | * See the License for the specific language governing permissions and |
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | | - |
17 | | - |
18 | 16 | import * as core from '@opencensus/core'; |
19 | 17 | import {logger} from '@opencensus/core'; |
20 | 18 | import * as assert from 'assert'; |
21 | | - |
22 | 19 | import {defaultConfig} from '../src/trace/config/default-config'; |
23 | 20 | import {Constants} from '../src/trace/constants'; |
24 | 21 | import {Tracing} from '../src/trace/tracing'; |
25 | 22 |
|
26 | | - |
27 | | - |
28 | 23 | const NOOP_EXPORTER = new core.NoopExporter(); |
29 | 24 | describe('Tracing', () => { |
30 | 25 | Constants.DEFAULT_INSTRUMENTATION_MODULES = ['http', 'https']; |
@@ -278,18 +273,6 @@ describe('Tracing', () => { |
278 | 273 | assert.strictEqual(tracing.config.exporter, newExporter); |
279 | 274 | assert.strictEqual(tracing.tracer.eventListeners.length, 1); |
280 | 275 | }); |
281 | | - |
282 | | - it('should register a null to unRegister', () => { |
283 | | - const tracing = new Tracing(); |
284 | | - tracing.start(); |
285 | | - const exporter = NOOP_EXPORTER; |
286 | | - tracing.registerExporter(exporter); |
287 | | - assert.strictEqual(tracing.config.exporter, exporter); |
288 | | - assert.strictEqual(tracing.tracer.eventListeners.length, 1); |
289 | | - tracing.registerExporter(null); |
290 | | - assert.ok(tracing.config.exporter instanceof core.NoopExporter); |
291 | | - assert.strictEqual(tracing.tracer.eventListeners.length, 0); |
292 | | - }); |
293 | 276 | }); |
294 | 277 |
|
295 | 278 | /** Should unregister the exporter instance */ |
|
0 commit comments