Wrote session dial tests. Use new helpers.

This commit is contained in:
Jay
2026-04-19 09:58:41 -04:00
parent 6998ccf701
commit 45b1a31cbb
9 changed files with 175 additions and 91 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ func TestStartReader(t *testing.T) {
conn, err := NewConnectionFromSocket(mockSocket, nil, nil)
assert.NoError(t, err)
assert.Eventually(t, func() bool {
honeybeetest.Eventually(t, func() bool {
return conn.State() == StateClosed
}, honeybeetest.TestTimeout, honeybeetest.TestTick)
}, "expected closed state")
})
}