Even a crap job is tolerable if the people are decent and the money is fair. Loyalty is due where loyalty is repaid. Granted, employment contracts and Non-Compete clauses always limit and grate, but is where you are now giving/getting you what you want? Will the green grass over the fence do better for you in the long run? Do you accept the burdens of those changes in the short run?
It can be pretty cheesy to attempt to "measure" your friendship, much less deliberately test it, but if you feel you're part of something larger (and a good part at that), then you don't even need to ask the question.
It's the old 4-panel plan problem. Take a sheet of paper, fold it in four, and mark them 6, 12, 5, 100. Then list things you want to do in the next 6 weeks, 12 months, 5 years, and 100 years. Review it carefully. The 6/12/5 items should lead somehow to the 100 year items. Climb a mountain? Sure! Learn mountain climbing? Yeah, I can do that in 5 years easy. Ah -- get fit first. Yep, can start that this year. Six weeks to find a good trainer -- can do!
So -- where are you going, and and is where you are (or wish you were) part of getting there?