Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@23207 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 19, 2019
1 parent 99c7ec3 commit d6e382d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/unittests/unit/client/mixins/networkstate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ def test_networkstate(self):
opts.bandwidth_detection = True
self._test_mixin_class(NetworkState, opts, {"start_time" : time.time()})
x = self.mixin
assert x.server_start_time>=x.start_time, "server_start_time=%s vs start_time=%s" % (x.server_start_time, x.start_time)
if x.server_start_time<x.start_time:
raise Exception("invalid time: server=%s vs start=%s" % (x.server_start_time, x.start_time))
x.uuid = get_hex_uuid()
x.send_info_request()
packet = ["info-response", {"foo" : "bar"}]
x._process_info_response(packet)
self.handle_packet(packet)
assert x.server_last_info.get("foo")=="bar"

def main():
Expand Down

0 comments on commit d6e382d

Please sign in to comment.