Open ibeckermayer opened 2 years ago
More context:
=== CONT TestLockInForce
=== CONT TestLockInForce
sshserver_test.go:412:
Error Trace: sshserver_test.go:412
Error: Condition never satisfied
Test: TestLockInForce
Messages: Timed out waiting for session to finish
{"caller":"backend/buffer.go:312","component":"buffer","level":"debug","message":"Add Watcher(name=8cf7fcf7-76ef-4b7f-b330-803325b24bb6.localhost, prefixes=/locks, capacity=128, size=0).","timestamp":"2022-08-09T23:13:19Z"}
sshserver_test.go:271:
Error Trace: sshserver_test.go:271
testing.go:1034
testing.go:1203
testing.go:1433
panic.go:500
testing.go:864
sshserver_test.go:412
Error: An error is expected but got nil.
Test: TestLockInForce
This one is back: https://github.com/gravitational/teleport/actions/runs/5123805781/jobs/9214837070
@tigrato maybe?
@zmb3
I don't think this is related to the StaleC
changes I made previously.
This test actually creates the lock and does not rely on staleness to enforce it and so it shouldn't be affected by it.
Can it be the case that 1 second is just not enough to propagate the lock?
// When I let the session idle (with the clock running at approx 10x speed)...
sessionHasFinished := func() bool {
f.clock.Advance(1 * time.Second)
select {
case <-endCh:
return true
default:
return false
}
}
require.Eventually(t, sessionHasFinished, 1*time.Second, 100*time.Millisecond,
"Timed out waiting for session to finish")
New hit: https://github.com/gravitational/teleport/actions/runs/5588749832/jobs/10215996358
=== CONT TestLockInForce
sshserver_test.go:577:
Error Trace: /__w/teleport/teleport/lib/srv/regular/sshserver_test.go:577
Error: Condition never satisfied
Test: TestLockInForce
Messages: Timed out waiting for session to finish
another: https://github.com/gravitational/teleport/actions/runs/5767199931/job/15636502323
=== Failed
=== FAIL: lib/srv/regular TestLockInForce (9.49s)
sshserver_test.go:577:
Error Trace: /__w/teleport/teleport/lib/srv/regular/sshserver_test.go:577
Error: Condition never satisfied
Test: TestLockInForce
Messages: Timed out waiting for session to finish
Failure
Link(s) to logs
Relevant snippet