mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 07:00:37 +02:00
Devices: fixes from review round 20
- A jump host's own "Authenticated to" line no longer counts as the headset's, and a master that logs in but doesn't start lets the next address be tried. - Devices tab changes refresh through the ordered list load, so a late answer can't undo a newer selection. - A probe's time out starts after the name lookup: macOS can take 5 s to look up a .local name (found on the real Frame once its USB link went away). - An attempt's ending is published from a method, not a return in finally. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
6597a90059
commit
42b51afc5a
3 files changed
+48
-28
No files matched your search
@@ -312,6 +312,11 @@ class Connecting(unittest.TestCase):
|
||||
self.link.lost("ssh: connect to host b port 22: Operation timed out", 3)
|
||||
self.assertEqual(len(self.link.kicks), 1)
|
||||
|
||||
def test_a_jump_hosts_login_isnt_the_headsets(self):
|
||||
opts = ["-o", "HostName=10.0.0.5"]
|
||||
self.assertFalse(fl.Link.is_target('Authenticated to bastion ([1.2.3.4]:22) using "publickey".', opts, "frame"))
|
||||
self.assertTrue(fl.Link.is_target('Authenticated to 10.0.0.5 ([10.0.0.5]:22) using "publickey".', opts, "frame"))
|
||||
|
||||
def test_probes_from_an_earlier_attempt_leave_the_new_rows_alone(self):
|
||||
self.link.state.update(attempt=2, probes=[{"host": "b", "state": "waiting"}])
|
||||
self.link.probe_update(0, 1, state="answered", ip="10.0.0.2")
|
||||
|
||||
Reference in new issue
Block a user