summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-05-07 15:50:06 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-05-07 15:50:06 +0000
commit38e2fbdc902b267ddfb0aa8ded4d91cd13fdd170 (patch)
tree4541f06ddc25dff61a391fc412a30d9c93184703 /sdk/sdk_test.go
parent4779327cf81efbcd5cabb9ec2206ac07ca3bec04 (diff)
parent425b0eacaaa7f37acd8c99195d53a3299de97df6 (diff)
Merge changes If673d482,I98b575b8
* changes: Remove reference to obsolete BuildSnapshot() Correct order of parameters to AssertDeepEquals
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r--sdk/sdk_test.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go
index 2f125e2d9..7ae3a03b9 100644
--- a/sdk/sdk_test.go
+++ b/sdk/sdk_test.go
@@ -283,7 +283,7 @@ func TestCommonValueOptimization(t *testing.T) {
extractor.extractCommonProperties(common, structs)
h := TestHelper{t}
- h.AssertDeepEquals("common properties not correct", common,
+ h.AssertDeepEquals("common properties not correct",
&testPropertiesStruct{
private: "",
Public_Kept: "",
@@ -297,9 +297,10 @@ func TestCommonValueOptimization(t *testing.T) {
S_Embedded_Common: "embedded_common",
S_Embedded_Different: "",
},
- })
+ },
+ common)
- h.AssertDeepEquals("updated properties[0] not correct", structs[0],
+ h.AssertDeepEquals("updated properties[0] not correct",
&testPropertiesStruct{
private: "common",
Public_Kept: "common",
@@ -313,9 +314,10 @@ func TestCommonValueOptimization(t *testing.T) {
S_Embedded_Common: "",
S_Embedded_Different: "embedded_upper",
},
- })
+ },
+ structs[0])
- h.AssertDeepEquals("updated properties[1] not correct", structs[1],
+ h.AssertDeepEquals("updated properties[1] not correct",
&testPropertiesStruct{
private: "common",
Public_Kept: "common",
@@ -329,5 +331,6 @@ func TestCommonValueOptimization(t *testing.T) {
S_Embedded_Common: "",
S_Embedded_Different: "embedded_lower",
},
- })
+ },
+ structs[1])
}