File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
internal/pkg/agent/install Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func Test_checkForUnprivilegedVault(t *testing.T) {
92
92
for _ , tt := range tests {
93
93
t .Run (tt .name , func (t * testing.T ) {
94
94
tempDir := t .TempDir ()
95
- ctx , cancel := context .WithTimeout (context . Background (), 5 * time .Second )
95
+ ctx , cancel := context .WithTimeout (t . Context (), 20 * time .Second )
96
96
defer cancel ()
97
97
testVaultPath := filepath .Join (tempDir , filepath .Base (paths .AgentVaultPath ()))
98
98
@@ -174,7 +174,7 @@ func TestNotifyFleetAuditUnenroll(t *testing.T) {
174
174
err : fmt .Errorf ("unretryable return status: 409" ),
175
175
}}
176
176
177
- log , _ := logp .NewInMemory ("test" , zap .NewDevelopmentEncoderConfig ())
177
+ log , _ := logp .NewInMemoryLocal ("test" , zap .NewDevelopmentEncoderConfig ())
178
178
pt := progressbar .NewOptions (- 1 , progressbar .OptionSetWriter (io .Discard ))
179
179
var agentID agentInfo = "testID"
180
180
You can’t perform that action at this time.
0 commit comments