mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
Add UTCNow() function. (#3931)
This patch adds UTCNow() function which returns current UTC time. This is equivalent of UTCNow() == time.Now().UTC()
This commit is contained in:
@@ -19,7 +19,6 @@ package cmd
|
||||
import (
|
||||
"net/http"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// TestSkipContentSha256Cksum - Test validate the logic which decides whether
|
||||
@@ -140,7 +139,7 @@ func TestExtractSignedHeaders(t *testing.T) {
|
||||
// expected header values.
|
||||
expectedHost := "play.minio.io:9000"
|
||||
expectedContentSha256 := "1234abcd"
|
||||
expectedTime := time.Now().UTC().Format(iso8601Format)
|
||||
expectedTime := UTCNow().Format(iso8601Format)
|
||||
|
||||
// Creating input http header.
|
||||
inputHeader := make(http.Header)
|
||||
|
||||
Reference in New Issue
Block a user