Skip to content

Commit 46177f2

Browse files
authored
Minor test updates (#122)
1 parent 6383df1 commit 46177f2

File tree

6 files changed

+7
-14
lines changed

6 files changed

+7
-14
lines changed

.github/workflows/streaming-jakarta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
go-version: '${{ matrix.go-version }}'
6767

68-
- name: Verify Examples
68+
- name: Verify
6969
shell: bash
7070
run: |
7171
go get google.golang.org/grpc/cmd/[email protected]

.github/workflows/streaming.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
go-version: '${{ matrix.go-version }}'
6868

69-
- name: Verify Examples
69+
- name: Verify
7070
shell: bash
7171
run: |
7272
go get google.golang.org/grpc/cmd/[email protected]

coherence/processors/processors.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
2+
* Copyright (c) 2022, 2025 Oracle and/or its affiliates.
33
* Licensed under the Universal Permissive License v 1.0 as shown at
44
* https://oss.oracle.com/licenses/upl.
55
*/
@@ -15,7 +15,6 @@ import (
1515
const (
1616
processorPrefix = "processor."
1717
extractorPrefix = "extractor."
18-
queuePrefix = "internal.net.queue.processor."
1918

2019
compositeProcessorType = processorPrefix + "CompositeProcessor"
2120
conditionalProcessorType = processorPrefix + "ConditionalProcessor"

test/e2e/perf/suite_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ func InitializeCoherence(ctx context.Context, address string) (Config, error) {
155155
)
156156

157157
// create a new Session to the default gRPC port of 1408 using plain text
158-
config.Session, err = coherence.NewSession(ctx, coherence.WithPlainText(), coherence.WithAddress(address))
158+
config.Session, err = coherence.NewSession(ctx, coherence.WithPlainText(), coherence.WithAddress(address),
159+
coherence.WithRequestTimeout(300*time.Minute))
159160
if err != nil {
160161
return config, err
161162
}

test/e2e/queues/queues_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Oracle and/or its affiliates.
2+
* Copyright (c) 2024, 2025 Oracle and/or its affiliates.
33
* Licensed under the Universal Permissive License v 1.0 as shown at
44
* https://oss.oracle.com/licenses/upl.
55
*/
@@ -455,11 +455,6 @@ func runTestQueueCompatability(g *gomega.WithT, queueName string, firstQueueType
455455
g.Expect(queue.Destroy(ctx)).ShouldNot(gomega.HaveOccurred())
456456

457457
utils.Sleep(5)
458-
459-
//g.Expect(errorOccurred).To(gomega.Equal(shouldError))
460-
//if !shouldError {
461-
// g.Expect(queue.Destroy(ctx)).ShouldNot(gomega.HaveOccurred())
462-
//}
463458
}
464459

465460
func testQueue(ctx context.Context, g *gomega.WithT, queue coherence.NamedQueue[string]) {

test/e2e/streaming/streaming_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ var (
4848
func TestStreamingConcurrency(t *testing.T) {
4949
g := gomega.NewWithT(t)
5050

51-
_ = os.Setenv("COHERENCE_CLIENT_REQUEST_TIMEOUT", "300000")
52-
5351
osCacheCount := os.Getenv("COHERENCE_CACHE_COUNT")
5452
if os.Getenv(osCacheCount) != "" {
5553
v, err := strconv.Atoi(osCacheCount)
@@ -58,7 +56,7 @@ func TestStreamingConcurrency(t *testing.T) {
5856
}
5957
}
6058

61-
session, err := utils.GetSession()
59+
session, err := utils.GetSession(coherence.WithRequestTimeout(5 * time.Minute))
6260
g.Expect(err).ShouldNot(gomega.HaveOccurred())
6361
defer session.Close()
6462

0 commit comments

Comments
 (0)