Skip to content

Commit

Permalink
chore(restore_test): adjust tests to enterprise features
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski committed Dec 22, 2023
1 parent 5d2f6b0 commit bf8a2bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/service/restore/service_restore_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,14 @@ func TestRestoreGetTargetUnitsViewsIntegration(t *testing.T) {
cmpopts.SortSlices(func(a, b Unit) bool { return a.Keyspace < b.Keyspace }),
cmpopts.SortSlices(func(a, b Table) bool { return a.Table < b.Table }),
cmpopts.IgnoreFields(Unit{}, "Size"),
cmpopts.IgnoreFields(Table{}, "Size")); diff != "" {
cmpopts.IgnoreFields(Table{}, "Size"),
cmpopts.IgnoreSliceElements(func(u Unit) bool { return u.Keyspace == "system_replicated_keys" })); diff != "" {
t.Fatal(tc.units, diff)
}

if diff := cmp.Diff(goldenViews, views,
cmpopts.SortSlices(func(a, b View) bool { return a.Keyspace+a.View < b.Keyspace+b.View })); diff != "" {
cmpopts.SortSlices(func(a, b View) bool { return a.Keyspace+a.View < b.Keyspace+b.View }),
cmpopts.IgnoreFields(View{}, "CreateStmt")); diff != "" {
t.Fatal(tc.views, diff)
}
})
Expand Down

0 comments on commit bf8a2bd

Please sign in to comment.