Skip to content

Commit 798d483

Browse files
author
Tim Middleton
committed
Minor test update
1 parent 452107c commit 798d483

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/e2e/standalone/near_cache_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
const (
2424
nearCacheName = "near-cache"
2525
nearMapName = "near-map"
26+
noNearCache = "no-near-cache"
2627
)
2728

2829
// TestNearCacheOperationsAgainstMapAndCache runs all near cache tests against NamedMap and NamedCache.
@@ -538,12 +539,12 @@ func TestDuplicateNamedCache(t *testing.T) {
538539
namedMap.Release()
539540

540541
// test creating a NamedCache WITHOUT near cache and then trying to get a NamedCache WITH near cache
541-
namedCache, err = coherence.GetNamedCache[int, string](session, "no-near-cache")
542+
namedCache, err = coherence.GetNamedCache[int, string](session, noNearCache)
542543
g.Expect(namedCache).To(gomega.Not(gomega.BeNil()))
543544
g.Expect(err).ShouldNot(gomega.HaveOccurred())
544545

545546
// try to get the same cache name with near cache config, should fail
546-
_, err = coherence.GetNamedCache[int, string](session, "no-near-cache", coherence.WithNearCache(&nearCacheOptions10Seconds))
547+
_, err = coherence.GetNamedCache[int, string](session, noNearCache, coherence.WithNearCache(&nearCacheOptions10Seconds))
547548
fmt.Println(err)
548549
g.Expect(err).Should(gomega.HaveOccurred())
549550

@@ -595,7 +596,7 @@ func TestNearCacheComparison(t *testing.T) {
595596
const maxValues = 2_000
596597

597598
nearCacheOptions := &coherence.NearCacheOptions{HighUnits: maxValues * 2}
598-
namedCache, err := coherence.GetNamedCache[string, string](session, "no-near-cache")
599+
namedCache, err := coherence.GetNamedCache[string, string](session, noNearCache)
599600
g.Expect(err).ShouldNot(gomega.HaveOccurred())
600601

601602
namedCacheNear, err := coherence.GetNamedCache[string, string](session, nearCacheName, coherence.WithNearCache(nearCacheOptions))

0 commit comments

Comments
 (0)