Adding context timeout to login and get location operations (#432)

This commit is contained in:
Lenin Alevski
2020-11-30 14:24:30 -08:00
committed by GitHub
parent 4a27ef4b2c
commit 94c3ade7fc
5 changed files with 18 additions and 14 deletions

View File

@@ -564,7 +564,7 @@ func Test_getConfig(t *testing.T) {
for _, tt := range tests {
tt.mock()
t.Run(tt.name, func(t *testing.T) {
got, err := getConfig(tt.args.client, tt.args.name)
got, err := getConfig(context.Background(), tt.args.client, tt.args.name)
if (err != nil) != tt.wantErr {
t.Errorf("getConfig() error = %v, wantErr %v", err, tt.wantErr)
return