e2e: Adding better diagnostic and location for temporary files to Snapshot tests.

This commit is contained in:
Piotr Tabor
2021-01-11 00:20:16 +01:00
parent 26f9b4be8f
commit 74274f4417
2 changed files with 37 additions and 22 deletions

View File

@@ -102,7 +102,13 @@ func TestNodeExternClone(t *testing.T) {
}
func sameSlice(a, b []*NodeExtern) bool {
<<<<<<< HEAD
ah := (*reflect.SliceHeader)(unsafe.Pointer(&a))
bh := (*reflect.SliceHeader)(unsafe.Pointer(&b))
return *ah == *bh
=======
va := reflect.ValueOf(a)
vb := reflect.ValueOf(b)
return va.Len() == vb.Len() && va.Pointer() == vb.Pointer()
>>>>>>> 6f8273a2a (fixup! e2e: Adding better diagnostic and location for temporary files to Snapshot tests.)
}