Skip to content

Commit 14e7a0c

Browse files
committed
fix unit tests
1 parent 1a7382f commit 14e7a0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gocqlzap/zap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestGocqlZapLog(t *testing.T) {
6666
if len(logEntry) == 0 {
6767
continue
6868
}
69-
if !strings.Contains(logEntry, "info\tgocql\tunable to dial control conn %s:%v (%s): %v\t{\"host_addr\": "+
69+
if !strings.Contains(logEntry, "info\tgocql\tControl connection failed to establish a connection to host.\t{\"host_addr\": "+
7070
"\"0.0.0.1\", \"port\": 9042, \"host_id\": \"\", \"err\": \"dial tcp 0.0.0.1:9042:") {
7171
continue
7272
} else {

gocqlzerolog/zerolog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestGocqlZeroLog(t *testing.T) {
5656
if len(logEntry) == 0 {
5757
continue
5858
}
59-
if !strings.Contains(logEntry, "unable to dial control conn %s:%v (%s): %v err=\"dial tcp 0.0.0.1:9042:") ||
59+
if !strings.Contains(logEntry, "Control connection failed to establish a connection to host.") ||
6060
!strings.Contains(logEntry, "host_addr=0.0.0.1 host_id= logger=gocql port=9042") {
6161
continue
6262
} else {

0 commit comments

Comments
 (0)