Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRemoveExcessLog (0.18 sec)

  1. pkg/kubelet/logs/container_log_manager_test.go

    	require.NoError(t, err)
    	assert.Len(t, logs, 2)
    	assert.Equal(t, testLogs[0], filepath.Join(dir, logs[0].Name()))
    	assert.Equal(t, testLogs[3], filepath.Join(dir, logs[1].Name()))
    }
    
    func TestRemoveExcessLog(t *testing.T) {
    	for desc, test := range map[string]struct {
    		max    int
    		expect []string
    	}{
    		"MaxFiles equal to 2": {
    			max:    2,
    			expect: []string{},
    		},
    		"MaxFiles more than 2": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top