Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGetWaitTime (0.13 sec)

  1. security/pkg/util/certutil_test.go

    	"testing"
    	"time"
    )
    
    const (
    	// This cert has:
    	//   NotBefore = 2017-08-23 19:00:40 +0000 UTC
    	//   NotAfter  = 2017-08-24 19:00:40 +0000 UTC
    	testCertFile = "testdata/cert-util.pem"
    )
    
    func TestGetWaitTime(t *testing.T) {
    	testCert, err := os.ReadFile(testCertFile)
    	if err != nil {
    		t.Errorf("cannot read testing cert file")
    		return
    	}
    	testCases := map[string]struct {
    		cert             []byte
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top