TCPConnection.userAgent isn't initialised correctly #1703

Closed
opened 2021-01-03 11:35:06 +01:00 by PeterSurda · 1 comment
PeterSurda commented 2021-01-03 11:35:06 +01:00 (Migrated from github.com)

Randomly travis brought this up:

Traceback (most recent call last):
  File "/var/lib/buildbot/workers/default/travis_bionic/build/src/bitmessageqt/tests/main.py", line 34, in tearDown
    self.fail('Exception in the main thread: %s' % exc)
AssertionError: Exception in the main thread: TCPConnection instance has no attribute 'userAgent'

I looked and TCPConnection.userAgent isn't initialised in __init__, only later.

Randomly travis brought this up: ``` Traceback (most recent call last): File "/var/lib/buildbot/workers/default/travis_bionic/build/src/bitmessageqt/tests/main.py", line 34, in tearDown self.fail('Exception in the main thread: %s' % exc) AssertionError: Exception in the main thread: TCPConnection instance has no attribute 'userAgent' ``` I looked and `TCPConnection.userAgent` isn't initialised in `__init__`, only later.
g1itch commented 2021-02-15 14:16:18 +01:00 (Migrated from github.com)

It's universal tearDown fail in qt tests: https://buildbot.bitmessage.org/#/builders/22/builds/6/steps/7/logs/stdio
It may be difficult to reproduce particular exception though.

It's universal tearDown fail in qt tests: https://buildbot.bitmessage.org/#/builders/22/builds/6/steps/7/logs/stdio It may be difficult to reproduce particular exception though.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-11-30#1703
No description provided.