We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ed3c5 commit cf948e4Copy full SHA for cf948e4
dsn_test.go
@@ -130,6 +130,11 @@ func TestDSNReformat(t *testing.T) {
130
res1 := fmt.Sprintf("%+v", cfg1)
131
132
dsn2 := cfg1.FormatDSN()
133
+ if dsn2 != dsn1 {
134
+ // Just log
135
+ t.Logf("%d. %q reformated as %q", i, dsn1, dsn2)
136
+ }
137
+
138
cfg2, err := ParseDSN(dsn2)
139
if err != nil {
140
t.Error(err.Error())
@@ -141,6 +146,11 @@ func TestDSNReformat(t *testing.T) {
141
146
if res1 != res2 {
142
147
t.Errorf("%d. %q does not match %q", i, res2, res1)
143
148
}
149
150
+ dsn3 := cfg2.FormatDSN()
151
+ if dsn3 != dsn2 {
152
+ t.Errorf("%d. %q does not match %q", i, dsn2, dsn3)
153
144
154
})
145
155
156
0 commit comments