Skip to content

Commit 9e5c1d1

Browse files
committed
Added changelog change
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
1 parent 7a5edca commit 9e5c1d1

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### Fixes
66

77
* Java: Add lazy connection support to Java module ([#4350](https://github.com/valkey-io/valkey-glide/pull/4370))
8+
* Go: Add lazy connection support ([#4374](https://github.com/valkey-io/valkey-glide/pull/4374))
89

910
## 2.0 (2025-06-18)
1011

go/integTest/connection_test.go

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ func newDedicatedValkey(suite *GlideTestSuite, clusterMode bool) (string, error)
2323
args = append(args, "--cluster-mode")
2424
}
2525

26-
// shardCount := 1
27-
// if clusterMode {
28-
// shardCount = 3
29-
// }
30-
// args = append(args, fmt.Sprintf("-n %d", shardCount))
31-
args = append(args, fmt.Sprintf("-r %d", 1))
26+
args = append(args, fmt.Sprintf("-r %d", 0))
3227

3328
// Execute cluster manager script
3429
output := runClusterManager(suite, args, false)
@@ -83,15 +78,7 @@ func getClientListOutputCount(output interface{}) int {
8378
return 0
8479
}
8580

86-
var text string
87-
switch v := output.(type) {
88-
case []byte:
89-
text = string(v)
90-
case string:
91-
text = v
92-
default:
93-
return 0
94-
}
81+
text := output.(string)
9582

9683
if text = strings.TrimSpace(text); text == "" {
9784
return 0
@@ -135,15 +122,7 @@ func getExpectedNewConnections(ctx context.Context, client interfaces.BaseClient
135122
return 0, err
136123
}
137124

138-
var nodesInfo string
139-
switch v := result.SingleValue().(type) {
140-
case []byte:
141-
nodesInfo = string(v)
142-
case string:
143-
nodesInfo = v
144-
default:
145-
nodesInfo = ""
146-
}
125+
nodesInfo := result.SingleValue().(string)
147126

148127
if nodesInfo = strings.TrimSpace(nodesInfo); nodesInfo == "" {
149128
return 0, nil

0 commit comments

Comments
 (0)