Commit 0d343c917d

0d343c917d7c58701e86a0638c08fe527af5b349

parent: 03757af164

Verified · cmc ci/build: success ci/test: success

cmc <hello@cleberg.net> · 2026-09-28 22:29 UTC

sshd: the disable test waits for the connection's account to be recorded

Ref #256

Layout: unified · split

internal/sshd/revoke_test.go +5
@@ -94,6 +94,11 @@ func TestRemoveKeyCutsConnection(t *testing.T) {
9494
9595func TestDisableCutsConnection(t *testing.T) {
9696 ts := newTestServer(t)
97 // The client's handshake can finish before the server has recorded
98 // the connection's account; a command answered proves it has.
99 if code, errOut := execStatus(ts.client, "whoami"); code != 0 {
100 t.Fatalf("whoami: %d %s", code, errOut)
101 }
97102 if err := ts.st.SetUserDisabled(ts.uid, true); err != nil {
98103 t.Fatal(err)
99104 }