diff --git a/tests/go_test.go b/tests/go_test.go index 18a6b8e2e93baae8b9eb7a2202163c10f89743c5..66bac277c8aec8d288dff82c3d8b4f6cba6d9482 100644 --- a/tests/go_test.go +++ b/tests/go_test.go @@ -203,10 +203,6 @@ func CheckReadBuffer(buf []byte, offset flatbuffers.UOffsetT, fail func(string, fail(FailString("monster.TestType()", example.AnyMonster, got)) } - if unionType := monster.TestType(); unionType != example.AnyMonster { - fail("monster.TestType()") - } - // initialize a Table from a union field Test(...) var table2 flatbuffers.Table if ok := monster.Test(&table2); !ok {