Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/controller/job/backoff_utils_test.go

    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			fakeClock := clocktesting.NewFakeClock(tc.currentTime.Truncate(time.Second))
    			d := tc.backoffRecord.getRemainingTime(fakeClock, tc.defaultBackoff, tc.maxBackoff)
    			if d.Seconds() != tc.wantDuration.Seconds() {
    				t.Errorf("Expected value of duration %v; got %v", tc.wantDuration, d)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top