Skip to content

Commit 8165ef7

Browse files
committed
add timeouts
1 parent 842cc93 commit 8165ef7

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

tests/suite/manifests/snippets-filter/invalid-context-sf.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ metadata:
1717
name: soda
1818
spec:
1919
parentRefs:
20-
- name: gateway
21-
sectionName: http
20+
- name: gateway
21+
sectionName: http
2222
hostnames:
23-
- "cafe.example.com"
23+
- "cafe.example.com"
2424
rules:
25-
- matches:
26-
- path:
25+
- matches:
26+
- path:
2727
type: Exact
2828
value: /soda
29-
filters:
30-
- type: ExtensionRef
31-
extensionRef:
32-
group: gateway.nginx.org
33-
kind: SnippetsFilter
34-
name: invalid-context
29+
filters:
30+
- type: ExtensionRef
31+
extensionRef:
32+
group: gateway.nginx.org
33+
kind: SnippetsFilter
34+
name: invalid-context
3535
backendRefs:
36-
- name: soda
37-
port: 80
36+
- name: soda
37+
port: 80

tests/suite/manifests/snippets-filter/invalid-duplicate-sf.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ metadata:
1919
name: tea
2020
spec:
2121
parentRefs:
22-
- name: gateway
23-
sectionName: http
22+
- name: gateway
23+
sectionName: http
2424
hostnames:
25-
- "cafe.example.com"
25+
- "cafe.example.com"
2626
rules:
27-
- matches:
28-
- path:
27+
- matches:
28+
- path:
2929
type: Exact
3030
value: /tea
31-
filters:
32-
- type: ExtensionRef
33-
extensionRef:
34-
group: gateway.nginx.org
35-
kind: SnippetsFilter
36-
name: duplicate-directive
31+
filters:
32+
- type: ExtensionRef
33+
extensionRef:
34+
group: gateway.nginx.org
35+
kind: SnippetsFilter
36+
name: duplicate-directive
3737
backendRefs:
38-
- name: tea
39-
port: 80
38+
- name: tea
39+
port: 80

tests/suite/manifests/snippets-filter/valid-sf.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ spec:
2424
- context: http
2525
value: types_hash_bucket_size 64;
2626
- context: http.server
27-
value: server_tokens on;
27+
value: server_tokens on;
2828
- context: http.server.location
29-
value: tcp_nodelay on;
29+
value: tcp_nodelay on;
3030
---
3131
apiVersion: gateway.networking.k8s.io/v1
3232
kind: HTTPRoute

tests/suite/tracing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ var _ = Describe("Tracing", FlakeAttempts(2), Label("functional", "tracing"), fu
214214
})
215215

216216
func verifyGatewayClassResolvedRefs() error {
217-
ctx, cancel := context.WithTimeout(context.Background(), timeoutConfig.GetTimeout)
217+
ctx, cancel := context.WithTimeout(context.Background(), timeoutConfig.GetTimeout*2)
218218
defer cancel()
219219

220220
var gc gatewayv1.GatewayClass

0 commit comments

Comments
 (0)