Skip to content

Commit

Permalink
refactor(drivertest): Update tenant isolation context handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bartventer committed Sep 19, 2024
1 parent 12102cc commit 0afa3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/drivertest/isolation.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func testTenantIsolation1(t *testing.T, db *multitenancy.DB, opts Options) {
defer wg.Done()
tenantCtx, cancel := context.WithCancel(ctx)
defer cancel()
tx := db.WithContext(ctx)
tx := db.WithContext(tenantCtx)
if err := tx.MigrateTenantModels(tenantCtx, tenant.ID); err != nil {
errCh <- err
return
Expand Down

0 comments on commit 0afa3f7

Please sign in to comment.