Skip to content

Commit be2b1ca

Browse files
committed
chore(logs): further improvements
1 parent 4df680b commit be2b1ca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/pkg/services/logs/utils/utils_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ func TestGetInstanceName(t *testing.T) {
7878

7979
for _, tt := range tests {
8080
t.Run(tt.description, func(t *testing.T) {
81-
client := mockSettings{
81+
settings := mockSettings{
8282
getInstanceFails: tt.getInstanceFails,
8383
getInstanceResp: tt.getInstanceResp,
8484
}
8585

86-
output, err := GetInstanceName(context.Background(), newAPIMock(client), testProjectId, testRegion, testInstanceId)
86+
output, err := GetInstanceName(context.Background(), newAPIMock(settings), testProjectId, testRegion, testInstanceId)
8787

8888
if tt.isValid && err != nil {
8989
t.Errorf("failed on valid input")
@@ -132,12 +132,12 @@ func TestGetAccessTokenName(t *testing.T) {
132132

133133
for _, tt := range tests {
134134
t.Run(tt.description, func(t *testing.T) {
135-
client := mockSettings{
135+
settings := mockSettings{
136136
getAccessTokenFails: tt.getAccessTokenFails,
137137
getAccessTokenResp: tt.getAccessTokenResp,
138138
}
139139

140-
output, err := GetAccessTokenName(context.Background(), newAPIMock(client), testProjectId, testRegion, testInstanceId, testAccessTokenId)
140+
output, err := GetAccessTokenName(context.Background(), newAPIMock(settings), testProjectId, testRegion, testInstanceId, testAccessTokenId)
141141

142142
if tt.isValid && err != nil {
143143
t.Errorf("failed on valid input")

0 commit comments

Comments
 (0)