Skip to content

Commit b37a0b8

Browse files
committed
Fix tests
1 parent a4d018f commit b37a0b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/command/command_service_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

test/types/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)