Skip to content

Commit

Permalink
fix ut failure caused by rebase by hand
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbeeSo committed Oct 11, 2024
1 parent b51622a commit 5fda71e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions pkg/disk/group_volume_snapshot_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ func Test_formatGroupSnapshot(t *testing.T) {
Snapshots: ecs.SnapshotsInDescribeSnapshotGroups{
Snapshot: []ecs.Snapshot{
{
SnapshotId: "snapshot1",
Status: "accomplished",
InstantAccess: false,
Available: true,
SnapshotId: "snapshot1",
Status: "accomplished",
InstantAccess: false,
Available: true,
SourceDiskSize: "10",
},
{
SnapshotId: "snapshot2",
Status: "progressing",
InstantAccess: true,
Available: false,
SnapshotId: "snapshot2",
Status: "progressing",
InstantAccess: true,
Available: false,
SourceDiskSize: "10",
},
},
},
Expand All @@ -65,12 +67,14 @@ func Test_formatGroupSnapshot(t *testing.T) {
ReadyToUse: true,
CreationTime: &timestamp.Timestamp{Seconds: stamp.Unix()},
GroupSnapshotId: "snapshotGroup1",
SizeBytes: 10 * 1024 * 1024 * 1024,
},
{
SnapshotId: "snapshot2",
ReadyToUse: false,
CreationTime: &timestamp.Timestamp{Seconds: stamp.Unix()},
GroupSnapshotId: "snapshotGroup1",
SizeBytes: 10 * 1024 * 1024 * 1024,
},
},
CreationTime: &timestamp.Timestamp{Seconds: stamp.Unix()},
Expand Down

0 comments on commit 5fda71e

Please sign in to comment.