Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timeLeft (0.14 sec)

  1. pkg/controller/ttlafterfinished/ttlafterfinished_controller_test.go

    	}
    
    	for _, tc := range testCases {
    
    		job := newJob(tc.completionTime, tc.failedTime, tc.ttl)
    		_, ctx := ktesting.NewTestContext(t)
    		logger := klog.FromContext(ctx)
    		gotTimeLeft, gotExpireAt, gotErr := timeLeft(logger, job, tc.since)
    		if tc.expectErr != (gotErr != nil) {
    			t.Errorf("%s: expected error is %t, got %t, error: %v", tc.name, tc.expectErr, gotErr != nil, gotErr)
    		}
    		if tc.expectErr && len(tc.expectErrStr) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 18 18:46:26 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top