Your tetra might be darting for a few reasons. It could be stressed by poor water quality, tank mates, or a recent introduction. It may also be excited at feeding time or breeding.