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 @@ -93,7 +93,7 @@ func Test_checkForUnprivilegedVault(t *testing.T) {
9393 for _ , tt := range tests {
9494 t .Run (tt .name , func (t * testing.T ) {
9595 tempDir := t .TempDir ()
96- ctx , cancel := context .WithTimeout (context . Background (), 5 * time .Second )
96+ ctx , cancel := context .WithTimeout (t . Context (), 20 * time .Second )
9797 defer cancel ()
9898 testVaultPath := filepath .Join (tempDir , filepath .Base (paths .AgentVaultPath ()))
9999
@@ -175,7 +175,7 @@ func TestNotifyFleetAuditUnenroll(t *testing.T) {
175175 err : fmt .Errorf ("unretryable return status: 409" ),
176176 }}
177177
178- log , _ := logp .NewInMemory ("test" , zap .NewDevelopmentEncoderConfig ())
178+ log , _ := logp .NewInMemoryLocal ("test" , zap .NewDevelopmentEncoderConfig ())
179179 pt := progressbar .NewOptions (- 1 , progressbar .OptionSetWriter (io .Discard ))
180180 var agentID agentInfo = "testID"
181181
You can’t perform that action at this time.
0 commit comments