mirror of
https://github.com/restic/restic.git
synced 2026-09-03 19:25:02 +00:00
Update dependencies
Among others, this updates minio-go, so that the new "eu-west-3" zone for AWS is supported.
This commit is contained in:
+8
-9
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
package spanner
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -31,7 +30,7 @@ import (
|
||||
func TestStrong(t *testing.T) {
|
||||
got := StrongRead()
|
||||
want := TimestampBound{mode: strong}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
if !testEqual(got, want) {
|
||||
t.Errorf("Strong() = %v; want %v", got, want)
|
||||
}
|
||||
}
|
||||
@@ -40,7 +39,7 @@ func TestStrong(t *testing.T) {
|
||||
func TestExactStaleness(t *testing.T) {
|
||||
got := ExactStaleness(10 * time.Second)
|
||||
want := TimestampBound{mode: exactStaleness, d: 10 * time.Second}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
if !testEqual(got, want) {
|
||||
t.Errorf("ExactStaleness(10*time.Second) = %v; want %v", got, want)
|
||||
}
|
||||
}
|
||||
@@ -49,7 +48,7 @@ func TestExactStaleness(t *testing.T) {
|
||||
func TestMaxStaleness(t *testing.T) {
|
||||
got := MaxStaleness(10 * time.Second)
|
||||
want := TimestampBound{mode: maxStaleness, d: 10 * time.Second}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
if !testEqual(got, want) {
|
||||
t.Errorf("MaxStaleness(10*time.Second) = %v; want %v", got, want)
|
||||
}
|
||||
}
|
||||
@@ -59,7 +58,7 @@ func TestMinReadTimestamp(t *testing.T) {
|
||||
ts := time.Now()
|
||||
got := MinReadTimestamp(ts)
|
||||
want := TimestampBound{mode: minReadTimestamp, t: ts}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
if !testEqual(got, want) {
|
||||
t.Errorf("MinReadTimestamp(%v) = %v; want %v", ts, got, want)
|
||||
}
|
||||
}
|
||||
@@ -69,7 +68,7 @@ func TestReadTimestamp(t *testing.T) {
|
||||
ts := time.Now()
|
||||
got := ReadTimestamp(ts)
|
||||
want := TimestampBound{mode: readTimestamp, t: ts}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
if !testEqual(got, want) {
|
||||
t.Errorf("ReadTimestamp(%v) = %v; want %v", ts, got, want)
|
||||
}
|
||||
}
|
||||
@@ -125,7 +124,7 @@ func TestDurationProto(t *testing.T) {
|
||||
}
|
||||
for _, test := range tests {
|
||||
got := durationProto(test.d)
|
||||
if !reflect.DeepEqual(got, &test.want) {
|
||||
if !testEqual(got, &test.want) {
|
||||
t.Errorf("durationProto(%v) = %v; want %v", test.d, got, test.want)
|
||||
}
|
||||
}
|
||||
@@ -143,7 +142,7 @@ func TestTimeProto(t *testing.T) {
|
||||
}
|
||||
for _, test := range tests {
|
||||
got := timestampProto(test.t)
|
||||
if !reflect.DeepEqual(got, &test.want) {
|
||||
if !testEqual(got, &test.want) {
|
||||
t.Errorf("timestampProto(%v) = %v; want %v", test.t, got, test.want)
|
||||
}
|
||||
}
|
||||
@@ -201,7 +200,7 @@ func TestBuildTransactionOptionsReadOnly(t *testing.T) {
|
||||
}
|
||||
for _, test := range tests {
|
||||
got := buildTransactionOptionsReadOnly(test.tb, test.ts)
|
||||
if !reflect.DeepEqual(got, &test.want) {
|
||||
if !testEqual(got, &test.want) {
|
||||
t.Errorf("buildTransactionOptionsReadOnly(%v,%v) = %v; want %v", test.tb, test.ts, got, test.want)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user