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 @@ -94,7 +94,7 @@ func Test_checkForUnprivilegedVault(t *testing.T) {
94
94
for _ , tt := range tests {
95
95
t .Run (tt .name , func (t * testing.T ) {
96
96
tempDir := t .TempDir ()
97
- ctx , cancel := context .WithTimeout (context . Background (), 5 * time .Second )
97
+ ctx , cancel := context .WithTimeout (t . Context (), 20 * time .Second )
98
98
defer cancel ()
99
99
testVaultPath := filepath .Join (tempDir , filepath .Base (paths .AgentVaultPath ()))
100
100
@@ -177,7 +177,7 @@ func TestNotifyFleetAuditUnenroll(t *testing.T) {
177
177
err : fmt .Errorf ("unretryable return status: 409" ),
178
178
}}
179
179
180
- log , _ := logp .NewInMemory ("test" , zap .NewDevelopmentEncoderConfig ())
180
+ log , _ := logp .NewInMemoryLocal ("test" , zap .NewDevelopmentEncoderConfig ())
181
181
pt := progressbar .NewOptions (- 1 , progressbar .OptionSetWriter (io .Discard ))
182
182
var agentID agentInfo = "testID"
183
183
You can’t perform that action at this time.
0 commit comments