Commit f56a4f4
Merge #155703
155703: kvserver: small cleanup in TestTenantCtx r=arulajmani a=stevendanna
This test recently failed during the CI run of an unrelated PR with the following error:
expected Scan to run as the expected tenant ({10}), but it isn't.
tenant request: false, tenantID: {0}
However, _in addition_ the test also hit a panic because it was accessing a nil tx2 because it used assert.NoError rather than require.NoError. Here, I re-arrange the test a bit to avoid this. It doesn't solve whatever cause the original failure though, which doesn't seem to what to reproduce under stress yet.
Epic: none
Release note: None
Co-authored-by: Steven Danna <danna@cockroachlabs.com>1 file changed
+15
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
491 | 493 | | |
492 | | - | |
493 | | - | |
494 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
495 | 499 | | |
496 | 500 | | |
497 | 501 | | |
| |||
507 | 511 | | |
508 | 512 | | |
509 | 513 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
| 514 | + | |
| 515 | + | |
514 | 516 | | |
515 | 517 | | |
0 commit comments