Skip to content

Commit 9345661

Browse files
committed
[ACTP] adapt idle tests to executor key synchronization
1 parent b4ecb8a commit 9345661

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/privateactionrunner/executor/server_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ func TestServeMTLSRequiresValidClientCert(t *testing.T) {
447447
// but the two are siblings under dd-procmgrd, so nothing would ever reap the
448448
// executor if the control plane were killed or stopped by itself.
449449
func TestServeExitsWhenIdle(t *testing.T) {
450-
srv := NewServer(&fakeExecutor{}, "test-version")
450+
srv := NewServer(&fakeExecutor{}, "test-version", nil)
451451
srv.SetReady(true)
452452

453453
socketPath := testListenAddr(t)
@@ -482,7 +482,7 @@ func TestServeExitsWhenIdle(t *testing.T) {
482482
// Health is how the control plane checks whether the executor is usable, so it
483483
// must not keep an otherwise idle executor alive forever.
484484
func TestServeHealthDoesNotDeferIdleExit(t *testing.T) {
485-
srv := NewServer(&fakeExecutor{}, "test-version")
485+
srv := NewServer(&fakeExecutor{}, "test-version", nil)
486486
srv.SetReady(true)
487487

488488
socketPath := testListenAddr(t)
@@ -524,7 +524,7 @@ func TestServeHealthDoesNotDeferIdleExit(t *testing.T) {
524524
// idle state regardless of how much time passes.
525525
func TestIdleTrackingWhileDispatching(t *testing.T) {
526526
mockClock := clock.NewMock()
527-
srv := NewServer(&fakeExecutor{}, "test-version")
527+
srv := NewServer(&fakeExecutor{}, "test-version", nil)
528528
srv.clock = mockClock
529529
srv.touch()
530530

0 commit comments

Comments
 (0)