mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
Pass the resync interval in the golden tag functional test (#1673)
#1522 added a resyncInterval parameter to NewActorTemplateReconciler and #1523 added this call site. They landed without seeing each other, so `main` doesn't compile. SEt the resyncInterval to 7s, to match what we have in other tests - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR
This commit is contained in:
@@ -161,7 +161,7 @@ func TestGoldenTagLifecycle(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
controlapi.NewActorTemplateReconciler(tc.persistence, tc.service).Start(ctx)
|
||||
controlapi.NewActorTemplateReconciler(tc.persistence, tc.service, 7*time.Second).Start(ctx)
|
||||
var goldenRef *ateapipb.ObjectRef
|
||||
err = wait.PollUntilContextTimeout(ctx, 50*time.Millisecond, 30*time.Second, true, func(ctx context.Context) (bool, error) {
|
||||
current, err := tc.client.GetActorTemplate(ctx, &ateapipb.GetActorTemplateRequest{ActorTemplate: templateRef.ToObjectRef()})
|
||||
|
||||
Reference in New Issue
Block a user