The assert.eq here is racing with the logger. This should be either wrapped in an assert.soon or should use checklog.