Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestGetBootTime (0.18 sec)

  1. pkg/kubelet/util/boottime_util_freebsd_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"testing"
    	"time"
    )
    
    func TestGetBootTime(t *testing.T) {
    	boottime, err := GetBootTime()
    
    	if err != nil {
    		t.Errorf("Unable to get system uptime")
    	}
    
    	if !boottime.After(time.Time{}) {
    		t.Errorf("Invalid system uptime")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 863 bytes
    - Viewed (0)
  2. pkg/kubelet/util/boottime_util_darwin_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"testing"
    	"time"
    )
    
    func TestGetBootTime(t *testing.T) {
    	boottime, err := GetBootTime()
    
    	if err != nil {
    		t.Errorf("Unable to get system uptime")
    	}
    
    	if !boottime.After(time.Time{}) {
    		t.Errorf("Invalid system uptime")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 31 15:09:08 UTC 2023
    - 861 bytes
    - Viewed (0)
  3. pkg/kubelet/util/boottime_util_linux_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"testing"
    	"time"
    )
    
    func TestGetBootTime(t *testing.T) {
    	boottime, err := GetBootTime()
    
    	if err != nil {
    		t.Errorf("Unable to get system uptime")
    	}
    
    	if !boottime.After(time.Time{}) {
    		t.Errorf("Invalid system uptime")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 859 bytes
    - Viewed (0)
Back to top