Goldfish are omnivorous. Well, more like opportunistic. They won't actively hunt but they will eat smaller fish if they are hungry enough or sometimes just because they can. I have seen goldfish eat cichlids lol. If the goldfish is only eating the tetras DURING feeding time it is probably just getting confused and thinks everything that can fit in its mouth, is supposed to.