@@ -202,7 +202,7 @@ KJ_TEST("Basic abort() operation") {
202202
203203 KJ_ASSERT (adapter->isClosed () == false , " Adapter should not be closed after abort()" );
204204 KJ_ASSERT (adapter->isClosing () == false , " Adapter should not be closing after abort()" );
205- auto exception =
205+ auto & exception =
206206 KJ_ASSERT_NONNULL (adapter->isErrored (), " Adapter should be in errored state after abort()" );
207207 KJ_ASSERT (exception.getDescription ().contains (" Abort reason" ),
208208 " Adapter should be in errored state after abort()" );
@@ -223,7 +223,7 @@ KJ_TEST("Basic abort() operation") {
223223 " End after abort() call should be rejected" );
224224
225225 adapter->abort (env.js , env.js .str (" Abort reason 2" _kj));
226- auto exception2 = KJ_ASSERT_NONNULL (
226+ auto & exception2 = KJ_ASSERT_NONNULL (
227227 adapter->isErrored (), " Adapter should still be in errored state after second abort()" );
228228 KJ_ASSERT (exception2.getDescription ().contains (" Abort reason 2" ),
229229 " Adapter should reflect reason from second abort() call" );
@@ -248,7 +248,7 @@ KJ_TEST("Abort from closing state supersedes close") {
248248
249249 KJ_ASSERT (adapter->isClosed () == false , " Adapter should not be closed after abort()" );
250250 KJ_ASSERT (adapter->isClosing () == false , " Adapter should not be closing after abort()" );
251- auto exception =
251+ auto & exception =
252252 KJ_ASSERT_NONNULL (adapter->isErrored (), " Adapter should be in errored state after abort()" );
253253 KJ_ASSERT (exception.getDescription ().contains (" Abort reason" ),
254254 " Adapter should be in errored state after abort()" );
0 commit comments