Commit e4fbaf2
Fix telemetry test mocks to set session.use_kernel
The connection-failure telemetry suppression reads session.use_kernel, but
these tests mock Session, so use_kernel was a truthy MagicMock — which
suppressed the wrapper failure log and broke
test_connection_failure_sends_correct_telemetry_payload. Set use_kernel
explicitly on the mock (False for the default Thrift case, True for the kernel
case) to reflect production.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>1 parent f5aaabb commit e4fbaf2
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
| |||
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
| 517 | + | |
| 518 | + | |
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
| |||
0 commit comments