Skip to content

Commit 452107c

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/e2e/standalone/near_cache_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ func TestNearCacheComparison(t *testing.T) {
598598
namedCache, err := coherence.GetNamedCache[string, string](session, "no-near-cache")
599599
g.Expect(err).ShouldNot(gomega.HaveOccurred())
600600

601-
namedCacheNear, err := coherence.GetNamedCache[string, string](session, "near-cache", coherence.WithNearCache(nearCacheOptions))
601+
namedCacheNear, err := coherence.GetNamedCache[string, string](session, nearCacheName, coherence.WithNearCache(nearCacheOptions))
602602
g.Expect(err).ShouldNot(gomega.HaveOccurred())
603603

604604
g.Expect(namedCache.Clear(ctx)).ShouldNot(gomega.HaveOccurred())
@@ -640,6 +640,9 @@ func TestNearCacheComparison(t *testing.T) {
640640
}
641641

642642
log.Println(namedCacheNear.GetNearCacheStats())
643+
644+
g.Expect(namedCacheNear.Destroy(ctx)).ShouldNot(gomega.HaveOccurred())
645+
g.Expect(namedCache.Destroy(ctx)).ShouldNot(gomega.HaveOccurred())
643646
}
644647

645648
// TestInvalidNearCacheOptions runs tests to ensure that we can't create a named cache/map with invalid options.

0 commit comments

Comments
 (0)