@@ -22,6 +22,7 @@ package test_integration
22
22
import (
23
23
"github.com/neo4j/neo4j-go-driver/neo4j"
24
24
"github.com/neo4j/neo4j-go-driver/neo4j/test-integration/control"
25
+ "math/rand"
25
26
26
27
. "github.com/onsi/ginkgo"
27
28
. "github.com/onsi/gomega"
@@ -252,29 +253,29 @@ var _ = Describe("Types", func() {
252
253
Expect (result .Err ()).To (BeNil ())
253
254
})
254
255
255
- // It("should be able to send and receive large string property", func() {
256
- // var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
257
- //
258
- // randSeq := func (n int) string {
259
- // b := make([]rune, n)
260
- // for i := range b {
261
- // b[i] = letters[rand.Intn(len(letters))]
262
- // }
263
- // return string(b)
264
- // }
265
- //
266
- // value := randSeq(20 * 1024)
267
- //
268
- // result, err = session.Run("CREATE (n {value: $value}) RETURN n.value", & map[string]interface{}{"value": value})
269
- // Expect(err).To(BeNil())
270
- //
271
- // if result.Next() {
272
- // Expect(result.Record().GetByIndex(0)).To(BeAssignableToTypeOf(""))
273
- // Expect(result.Record().GetByIndex(0)).To(Equal(value))
274
- // }
275
- // Expect(result.Next()).To(BeFalse())
276
- // Expect(result.Err()).To(BeNil())
277
- // })
256
+ It ("should be able to send and receive large string property" , func () {
257
+ var letters = []rune ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" )
258
+
259
+ randSeq := func (n int ) string {
260
+ b := make ([]rune , n )
261
+ for i := range b {
262
+ b [i ] = letters [rand .Intn (len (letters ))]
263
+ }
264
+ return string (b )
265
+ }
266
+
267
+ value := randSeq (20 * 1024 )
268
+
269
+ result , err = session .Run ("CREATE (n {value: $value}) RETURN n.value" , map [string ]interface {}{"value" : value })
270
+ Expect (err ).To (BeNil ())
271
+
272
+ if result .Next () {
273
+ Expect (result .Record ().GetByIndex (0 )).To (BeAssignableToTypeOf ("" ))
274
+ Expect (result .Record ().GetByIndex (0 )).To (Equal (value ))
275
+ }
276
+ Expect (result .Next ()).To (BeFalse ())
277
+ Expect (result .Err ()).To (BeNil ())
278
+ })
278
279
279
280
It ("should be able to receive a node with properties" , func () {
280
281
result , err = session .Run ("CREATE (n:Person:Manager {id: 1, name: 'a name'}) RETURN n" , nil )
0 commit comments