hostedclient: give the test controller a provider namespace
hostedctl.New now needs Config.ProviderNamespace and ProviderFingerprint (R28, R29); the client tests' controller missed them in c53d99b1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+2
−1
internal/hostedclient/client_test.go+2 −1
diff --git a/internal/hostedclient/client_test.go b/internal/hostedclient/client_test.go| index fce4fa43..93c5ca02 100644 |
| --- a/internal/hostedclient/client_test.go |
| +++ b/internal/hostedclient/client_test.go |
| @@ -67,7 +67,8 @@ func newCtlEnv(t *testing.T) *ctlEnv { |
| } |
| t.Cleanup(func() { _ = store.Close() }) |
| fake := isolatedjob.NewFake(clk, isolatedjob.SpikeLimits()) |
| - c, err := hostedctl.New(hostedctl.Config{Enabled: true, Images: map[isolatedjob.ImageDigest]bool{imgA: true}}, |
| + c, err := hostedctl.New(hostedctl.Config{Enabled: true, Images: map[isolatedjob.ImageDigest]bool{imgA: true}, |
| + ProviderNamespace: "test", ProviderFingerprint: func(isolatedjob.ImageDigest, isolatedjob.Size) string { return "" }}, |
| hostedctl.Deps{Store: store, Runner: fake, Auditor: fake, Alerter: nopAlerter{}}) |
| if err != nil { |
| t.Fatalf("New = %v", err) |