Skip to content

Commit 9261b48

Browse files
test: update conn_name_test.go (#926)
1 parent 5ae88ea commit 9261b48

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

instance/conn_name_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ func TestParseConnName(t *testing.T) {
2222
want ConnName
2323
}{
2424
{
25-
"project:region:instance",
26-
ConnName{project: "project", region: "region", name: "instance"},
25+
name: "project:region:instance",
26+
want: ConnName{project: "project", region: "region", name: "instance"},
2727
},
2828
{
29-
"google.com:project:region:instance",
30-
ConnName{project: "google.com:project", region: "region", name: "instance"},
29+
name: "google.com:project:region:instance",
30+
want: ConnName{project: "google.com:project", region: "region", name: "instance"},
3131
},
3232
{
33-
"project:instance", // missing region
34-
ConnName{},
33+
name: "project:instance", // missing region
34+
want: ConnName{},
3535
},
3636
}
3737

@@ -41,7 +41,7 @@ func TestParseConnName(t *testing.T) {
4141
t.Errorf("unexpected error: %e", err)
4242
}
4343
if c != tc.want {
44-
t.Errorf("ParseConnName(%s) failed: want %v, got %v", tc.name, tc.want, err)
44+
t.Errorf("ParseConnName(%s) failed: want %v, got %v", tc.name, tc.want, c)
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)