mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 08:36:37 +08:00
fix(core): delegate driver and task extension lookups to root context and improve test reliability
This commit is contained in:
@@ -406,10 +406,10 @@ func TestAppRunContextCancellation(t *testing.T) {
|
||||
errCh <- app.Run(ctx)
|
||||
}()
|
||||
|
||||
// Wait briefly then cancel
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
assert.True(t, app.IsRunning())
|
||||
assert.True(t, d.isStarted())
|
||||
// Wait for app and driver to become ready
|
||||
assert.Eventually(t, func() bool {
|
||||
return app.IsRunning() && d.isStarted()
|
||||
}, 2*time.Second, 10*time.Millisecond)
|
||||
|
||||
cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user