Skip to content

Commit d40c131

Browse files
add TransactionSession#assign for use in tests
1 parent 5aac641 commit d40c131

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

db-session.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ class TransactionSession {
215215

216216
return releasePair.return(getResult)
217217
}
218+
219+
// NB: for use in tests _only_!)
220+
assign (domain) {
221+
DOMAIN_TO_SESSION.set(domain, this)
222+
}
218223
}
219224

220225
class AtomicSession extends TransactionSession {

0 commit comments

Comments
 (0)