Skip to content

Agent Mesh

Configure BiscuitTimeout to 2s in static service unit tests to prevent datalog timeouts

Antonio Ojea286b8a86ca39
diff --git a/internal/node/static_service_test.go b/internal/node/static_service_test.go
index 13a76b2b..1ffc29b3 100644
--- a/internal/node/static_service_test.go
+++ b/internal/node/static_service_test.go
@@ -160,6 +160,7 @@ func TestStaticServiceRegistrationRequiresConnection(t *testing.T) {
if err != nil {
t.Fatalf("failed to create node: %v", err)
}
+ node.BiscuitTimeout = 1 * time.Second
ctx := context.Background()
if err := node.Start(ctx); err != nil {
t.Fatalf("failed to start node: %v", err)
@@ -245,6 +246,7 @@ func TestStaticServiceRegistrationCommandFailure(t *testing.T) {
if err != nil {
t.Fatalf("failed to create node: %v", err)
}
+ node.BiscuitTimeout = 2 * time.Second
ctx := context.Background()
if err := node.Start(ctx); err != nil {
t.Fatalf("failed to start node: %v", err)