Skip to content

Commit d14ae68

Browse files
author
Tim Middleton
committed
Code cleanup
1 parent a678a40 commit d14ae68

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/v1/base/base_test.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ func TestGetAndPutRequests(t *testing.T) {
8383

8484
assertSize(g, session, cache, 1)
8585

86-
// issue a get, and we should get back the correct value
8786
currentValue, err = coherence.TestGet(ctx, session, cache, key)
8887
g.Expect(err).Should(gomega.BeNil())
8988
g.Expect(currentValue).ShouldNot(gomega.BeNil())
90-
9189
getValue, err = serializerString.Deserialize(*currentValue)
9290
g.Expect(err).Should(gomega.BeNil())
9391
g.Expect(*getValue).Should(gomega.Equal("value"))
@@ -124,16 +122,15 @@ func TestPutIfAbsent(t *testing.T) {
124122
currentValue, err = coherence.TestPutIfAbsent(ctx, session, cache, key, value)
125123
g.Expect(err).Should(gomega.BeNil())
126124
getValue, err = serializerString.Deserialize(*currentValue)
125+
127126
g.Expect(err).Should(gomega.BeNil())
128127
g.Expect(getValue).Should(gomega.BeNil())
129-
130128
assertSize(g, session, cache, 1)
131129

132130
// issue a get, and we should get back the correct value
133131
currentValue, err = coherence.TestGet(ctx, session, cache, key)
134132
g.Expect(err).Should(gomega.BeNil())
135133
g.Expect(currentValue).ShouldNot(gomega.BeNil())
136-
137134
getValue, err = serializerString.Deserialize(*currentValue)
138135
g.Expect(err).Should(gomega.BeNil())
139136
g.Expect(*getValue).Should(gomega.Equal("value"))
@@ -202,20 +199,17 @@ func TestPutWithExpiry(t *testing.T) {
202199

203200
session := getTestSession(t, g)
204201
defer session.Close()
205-
206202
_ = ensureCache(g, session, cache)
207203

208204
// create key and value
209205
key := ensureSerializedInt32(g, 32)
210206
value := ensureSerializedString(g, "value")
211207

212-
// clear the cache
213208
err = coherence.TestClearCache(ctx, session, cache)
214209
g.Expect(err).Should(gomega.BeNil())
215210

216211
assertSize(g, session, cache, 0)
217-
218-
// put a value into the cache
212+
219213
currentValue, err = coherence.TestPut(ctx, session, cache, key, value, time.Duration(4)*time.Second)
220214
g.Expect(err).Should(gomega.BeNil())
221215
// result of put with no value will be "null"

0 commit comments

Comments
 (0)