Skip to content

Commit

Permalink
fix: Fixed Go Vet issue composite literal uses unkeyed fields
Browse files Browse the repository at this point in the history
Signed-off-by: lenny <leonard.goodell@intel.com>
  • Loading branch information
lenny committed Mar 5, 2021
1 parent b5bf0b9 commit 581ae74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/security/proxy/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,12 @@ func TestInitKongService(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tk := &models.KongService{tt.serviceId, "test", 80, "http"}
tk := &models.KongService{
Name: tt.serviceId,
Protocol: "http",
Host: "test",
Port: 80,
}
svc := NewService(&http.Client{}, logger.MockLogger{}, &tt.config)
err = svc.initKongService(tk)

Expand Down

0 comments on commit 581ae74

Please sign in to comment.