Need reusable code for tests that use twisted tcp connections

Bug #963082 reported by Manuel de la Peña
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntuone-dev-tools
Status tracked in Trunk
Trunk
Fix Released
High
Manuel de la Peña
ubuntuone-dev-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned

Bug Description

Disconnecting clients and servers on trial is a complicated task that is prone to errors. Following the advice from http://mumak.net/stuff/twisted-disconnect.html we should be waiting for three different deferreds to ensure that all selectors are correctly cleaned and that the reactor is left clean.

This code has been used several times in the ubuntuone code and thus it should be centralized here for better reuse.

Tags: u1-ffe

Related branches

Changed in ubuntuone-dev-tools (Ubuntu):
milestone: none → ubuntu-12.04
summary: - Provide reusable code for tests that use twisted.spread.pb
+ [FFe] Need reusable code for tests that use twisted.spread.pb
Changed in ubuntuone-dev-tools (Ubuntu):
milestone: ubuntu-12.04 → none
summary: - [FFe] Need reusable code for tests that use twisted.spread.pb
+ Need reusable code for tests that use twisted.spread.pb
dobey (dobey)
no longer affects: ubuntuone-dev-tools/stable-3-0
summary: - Need reusable code for tests that use twisted.spread.pb
+ Need reusable code for tests that use twisted tcp connections
description: updated
tags: added: u1-ffe
dobey (dobey)
Changed in ubuntuone-dev-tools (Ubuntu Quantal):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.