Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SetExpires (0.04 sec)

  1. cmd/postpolicyform_test.go

    		},
    	}
    
    	// Run tests
    	for _, tt := range testCases {
    		t.Run(tt.name, func(t *testing.T) {
    			if tt.expired {
    				// Expired already.
    				pp.SetExpires(UTCNow().AddDate(0, 0, -10))
    			} else {
    				// Expires in 10 days.
    				pp.SetExpires(UTCNow().AddDate(0, 0, 10))
    			}
    
    			tt.fv.Set("Policy", base64.StdEncoding.EncodeToString([]byte(pp.String())))
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top