File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,6 @@ func TestCommandService_UpdateClient_requestInProgress(t *testing.T) {
237237 wg .Done ()
238238 }()
239239
240- time .Sleep (100 * time .Millisecond )
241- delete (commandService .requestsInProgress , instanceID )
242240 wg .Wait ()
243241
244242 require .NoError (t , updateClientErr )
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const (
3131
3232 maxParallelFileOperations = 5
3333 reloadMonitoringPeriod = 400 * time .Millisecond
34+ connectionResetTimeout = 200 * time .Millisecond
3435)
3536
3637// Produces a populated Agent Config for testing usage.
@@ -58,6 +59,7 @@ func AgentConfig() *config.Config {
5859 MaxFileSize : 1 ,
5960 FileChunkSize : 1 ,
6061 MaxParallelFileOperations : maxParallelFileOperations ,
62+ ConnectionResetTimeout : connectionResetTimeout ,
6163 },
6264 Backoff : & config.BackOff {
6365 InitialInterval : commonInitialInterval ,
You can’t perform that action at this time.
0 commit comments