Skip to content

Commit c76a3d2

Browse files
committed
chore: fix e2e testing on lower resources env
1 parent 0128a76 commit c76a3d2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pkg/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ type Config struct {
2727
LogFormat string `envconfig:"LOG_FORMAT" default:"auto" description:"Log format (auto, text, json)"`
2828

2929
// Node.js server configuration
30-
HealthCheckWait time.Duration `envconfig:"HEALTH_CHECK_WAIT" default:"30s" description:"Timeout for health check"`
31-
HealthCheckInterval time.Duration `envconfig:"HEALTH_CHECK_INTERVAL" default:"500ms" description:"Interval for health check polling"`
32-
NodeRequestTimeout time.Duration `envconfig:"NODE_REQUEST_TIMEOUT" default:"30s" description:"Timeout for Node.js requests"`
30+
HealthCheckWait time.Duration `envconfig:"HEALTH_CHECK_WAIT" default:"900s" description:"Timeout for health check"`
31+
HealthCheckInterval time.Duration `envconfig:"HEALTH_CHECK_INTERVAL" default:"1s" description:"Interval for health check polling"`
32+
NodeRequestTimeout time.Duration `envconfig:"NODE_REQUEST_TIMEOUT" default:"5s" description:"Timeout for Node.js requests"`
3333

3434
// Yarn configuration
3535
MaxConcurrentYarnInstalls int `envconfig:"MAX_CONCURRENT_YARN_INSTALLS" default:"3" description:"Maximum concurrent yarn install operations"`

pkg/node/process.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ func NewProcessManager(gcInterval, idleTimeout time.Duration, tempDir string, lo
4343
idleTimeout: idleTimeout,
4444
tempDir: tempDir,
4545
logger: logger,
46-
healthCheckWait: 90 * time.Second, // Default timeout for health check
47-
healthCheckInterval: 1 * time.Millisecond, // Default interval for health check polling
48-
requestTimeout: 30 * time.Second, // Default timeout for requests
46+
healthCheckWait: 60 * time.Second, // Default timeout for health check
47+
healthCheckInterval: 1 * time.Second, // Default interval for health check polling
48+
requestTimeout: 5 * time.Second, // Default timeout for requests
4949
}
5050

5151
// Apply options

tests/test-xfuncjs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ kubectl apply -f tests/fixtures/domain-sdk/sample.yaml
7272
# Wait for the ConfigMap to be created
7373
echo "Waiting for ConfigMap to be created..."
7474
configmap_created=false
75-
for i in {1..60}; do
75+
for i in {1..180}; do
7676
if kubectl get configmap generated-configmap -n test-xfuncjs &> /dev/null; then
7777
echo "ConfigMap created successfully!"
7878
configmap_created=true
7979
break
8080
fi
81-
echo "Waiting for ConfigMap to be created... ($i/60)"
81+
echo "Waiting for ConfigMap to be created... ($i/180)"
8282

8383
# Check the status of the SimpleConfigMap
8484
if [ $((i % 5)) -eq 0 ]; then

0 commit comments

Comments
 (0)